Moq is a strongly typed and minimalistic mocking framework for .NET.
I'm trying to verify that a method within a mock is called with an expected object parameter. I'm using Moq, …
nunit moq autofixtureWhy there is no IDbContext interface in the Entity Framework? Wouldn't it be easier to test things if there was …
entity-framework unit-testing testing mocking moqSince I have converted my WCF methods to Async, my unit tests have failed, and I can't figure out the …
c# .net asynchronous async-await moqI'm very new to unit testing and mocking! I'm trying to write some unit tests that covers some code that …
c# unit-testing moqI would like to set up a method with Moq twice but it seems that the last one overrides the …
c# .net unit-testing moqI want a mock returns a 0 the first time, then returns 1 anytime the method was called. The problem is that …
c# unit-testing mocking moqI am trying to create a unit test using Moq which tests the MongoDB.AspNet.Identity V2 provider. This line …
mongodb moq asp.net-identityI have an interface public interface IDataProvider { T GetDataDocument<T>(Guid document) where T:class, new() } I'd like …
c# moqI'm trying to create a unit test for a class that calls into an async repository. I'm using ASP.NET …
c# unit-testing asp.net-core moq entity-framework-coreSetup as so: public interface IFoo { void Fizz(); } [Test] public void A() { var foo = new Mock<IFoo>(MockBehavior.…
c# unit-testing moq