Can anybody provide a good starting point or example of using Moq and nUnit to perform tests against the entity framework ins开发者_开发技巧ide MVC. I have a DomainModel which contains \"MyModel.edmx\
I have the following setup for Moq: ... other code to setup bigMoq object ... var innerMoq = new Mock<IDictionary<string, double>>();
I have a class library that has a method that sends emails based on a template. I access the template via the following:
Is it possible to write code like the following. I\'m trying to using Moq with objects that I\'m reflecting on as part of a testing framework. The code below raises a "Unhandled expression type:
I have started using the UnityAutoMoqContainer Here is the Link and I have below 2 questions in particularly around container.Ge开发者_运维技巧tMock() call.
This is my first question so please be kind! :) What I am trying to do is write some tests for a manager class that during construction adds many new instances of a single item class to a list.When t
it\'s time to do some unit testing with MVVM Light ViewModels. Setup: Visual Studio 2010 SP 1 Windows Phone 7.1 SDK Release Candidate
I have a test like this: [TestCase("~/page/myaction")] public void Page_With_Custom_Action(string path) {
I decided to start writing unit tests in our application. It uses Entity Framework with a repository pattern.
For example I want to test the fact that my multi-threaded method is calling the repository methods n times if I give him n chunks of data from different threads. Of course mocks are not thread safe a