¡@

Home 

c# Programming Glossary: testable

How do you mock out the file system in C# for unit testing?

http://stackoverflow.com/questions/1087351/how-do-you-mock-out-the-file-system-in-c-sharp-for-unit-testing

could also just accept that certain methods are not unit testable and test them in a separate slow running integration system..

Best Practices of Test Driven Development Using C# and RhinoMocks [closed]

http://stackoverflow.com/questions/124210/best-practices-of-test-driven-development-using-c-sharp-and-rhinomocks

C# and RhinoMocks closed In order to help my team write testable code I came up with this simple list of best practices for making.. list of best practices for making our C# code base more testable. Some of the points refer to limitations of Rhino Mocks a mocking.. first then the code. Reason This ensures that you write testable code and that every line of code gets tests written for it...

What is Castle Windsor, and why should I care?

http://stackoverflow.com/questions/124871/what-is-castle-windsor-and-why-should-i-care

View Models and dependency injection

http://stackoverflow.com/questions/14131804/view-models-and-dependency-injection

repetition of code i.e. DRY Thin view models which are testable if needed...they may contain nothing to test Thin testable controllers... testable if needed...they may contain nothing to test Thin testable controllers. Testable composer objects which can be reused for..

Design pattern for handling multiple message types

http://stackoverflow.com/questions/1477471/design-pattern-for-handling-multiple-message-types

than creating them in the constructor making this very testable. You can introduce topic like behavior where you have multiple..

Moving existing code to Test Driven Development

http://stackoverflow.com/questions/167079/moving-existing-code-to-test-driven-development

summary it's a lot of work to refactor existing code into testable and tested code Sometimes it's too much work to be practical...

MVVM Light & WPF - Binding Multiple instances of a Window to a ViewModel

http://stackoverflow.com/questions/16993433/mvvm-light-wpf-binding-multiple-instances-of-a-window-to-a-viewmodel

event which should be avoided If needing to be testable . My preferred approach is a bit long and is very well documented..

M-V-VM Design Question. Calling View from ViewModel

http://stackoverflow.com/questions/303006/m-v-vm-design-question-calling-view-from-viewmodel

view in the Search View doesn't seem right it's not testable at all. Here is my ViewModel implementation which is not testable..... at all. Here is my ViewModel implementation which is not testable... public class SearchViewModel public void SelectItem I want.. call the DetailsView from here this seems wrong and is untestable var detailsView new DetailsView detailsView.Show Where does..

Is it the best practice to extract an interface for every class?

http://stackoverflow.com/questions/3036749/is-it-the-best-practice-to-extract-an-interface-for-every-class

refactoring to pull an interface out of a type to make it testable or so we can change implementations whilst lessening the impact..

How should I model my code to maximize code re-use in this specific situation?

http://stackoverflow.com/questions/3389588/how-should-i-model-my-code-to-maximize-code-re-use-in-this-specific-situation

How to pass Current User Information to all Layers in DDD

http://stackoverflow.com/questions/3964989/how-to-pass-current-user-information-to-all-layers-in-ddd

before using IoC. The benefit of this is that it's very testable you can stub out your user info for testing and reasonably readable..

Insert blob in oracle database with C#

http://stackoverflow.com/questions/4902250/insert-blob-in-oracle-database-with-c-sharp

C# I have to persist a .csv in my database but for a more testable application I prefer don't use procedures. Basically I just..

Which types should my Entity Framework repository and service layer methods return: List, IEnumerable, IQueryable?

http://stackoverflow.com/questions/6416506/which-types-should-my-entity-framework-repository-and-service-layer-methods-retu

which will work in the most cases but it is worse testable because queries defined on IQueryable are linq to entities...

To return IQueryable<T> or not return IQueryable<T>

http://stackoverflow.com/questions/718624/to-return-iqueryablet-or-not-return-iqueryablet

non testability Your repository is no longer properly unit testable you can't rely on a it working b what it does the caller could..

Injecting dependencies into ASP.NET MVC 3 action filters. What's wrong with this approach?

http://stackoverflow.com/questions/7192543/injecting-dependencies-into-asp-net-mvc-3-action-filters-whats-wrong-with-this

this but seriously what would be the downside It's still testable as you can use the constructor that takes an IMyService at test..

Programming to interfaces while mapping with Fluent NHibernate

http://stackoverflow.com/questions/845536/programming-to-interfaces-while-mapping-with-fluent-nhibernate

Message . The thought behind this is to help make it more testable by being able to mock dependencies. However Fluent NHibernate..

How can I ensure that a division of integers is always rounded up?

http://stackoverflow.com/questions/921180/how-can-i-ensure-that-a-division-of-integers-is-always-rounded-up

we have a specification so we know we can come up with a testable design . Suppose we add an additional design criterion that..