moq
Moq & nUnit to test EntityFramework MVC3 C#
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\[详细]
2023-04-04 00:26 分类:问答MOQ - Mock a Dictionary<string, double> object
I have the following setup for Moq: ... other code to setup bigMoq object ... var innerMoq = new Mock<IDictionary<string, double>>();[详细]
2023-04-03 19:50 分类:问答Moq'ing HttpContext.Current
I have a class library that has a method that sends emails based on a template. I access the template via the following:[详细]
2023-04-03 18:36 分类:问答Moq and reflection, passing dynamically generated expression tree / lambda to moq
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:[详细]
2023-04-02 23:30 分类:问答Resolving dependencies via UnityAutoMoqContainer
I have started using the UnityAutoMoqContainer Here is the Link and I have below 2 questions in particularly around container.Ge开发者_运维技巧tMock() call.[详细]
2023-04-02 20:07 分类:问答How to use Moq to test a method with no return value?
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[详细]
2023-04-02 14:34 分类:问答Windows Phone 7.1, Silverlight NUnit Project -template and Moq: TypeLoadException
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[详细]
2023-04-02 11:24 分类:问答Different return values the first and second time with Moq
I have a test like this: [TestCase("~/page/myaction")] public void Page_With_Custom_Action(string path) {[详细]
2023-04-01 21:32 分类:问答Unit test EF Repository pattern with Moq
I decided to start writing unit tests in our application. It uses Entity Framework with a repository pattern.[详细]
2023-04-01 07:16 分类:问答Testing multithreading service methods in mocks
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[详细]
2023-03-31 22:31 分类:问答