Moq is a strongly typed and minimalistic mocking framework for .NET.
I am trying to test the following filter: using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Mvc.Filters; namespace Hello { public …
asp.net-mvc unit-testing moq xunitI have the following ASP.NET Core integration test using a custom WebApplicationFactory public class CustomWebApplicationFactory<TEntryPoint> : WebApplicationFactory&…
asp.net-core asp.net-core-mvc moq xunit asp.net-core-testhostI am trying to discover how to apply the async and await keywords to my xUnit tests. I am using …
c# moq async-await xunit.netCould somebody show me how you would go about creating a mock HTML Helper with Moq? This article has a …
asp.net-mvc unit-testing nunit moq html-helperI use NUnit and Moq libraries for unit testing. I need to mock overloaded Url.Action(string, string, object, string), …
asp.net-mvc unit-testing moq urlhelperI'm having a bit of trouble getting my head around testing my custom validation attribute. As the method signature is …
c# asp.net-mvc unit-testing moq validationattributeIn my method, I have my repository doing this: bool isConditionMet = MyRepository.Any(x => x.Condition == true); I am …
c# .net unit-testing moq predicateI'm using Moq & NUnit as a unit test framework. I've written a method that is given a NetworkStream object …
c# unit-testing mocking moq networkstream