Moq is a strongly typed and minimalistic mocking framework for .NET.
How to mock the following class: UserRepository : GenericRepository<User>, IUserRepository public class GenericRepository<TEntity> : IGenericRepository<…
c# mocking moqI'm new to moq and setting up mocks so i could do with a little help. How do I mock …
c# unit-testing mocking moqI have the following (simplified) code. public class Controller { private readonly IService _service; public Controller(IService service) { _service = service; } public …
c# mocking nunit moq simple-injectorI am developing tests for an application. There's a method that has a params array as a parameter. I have …
c# nunit moqWhats the best way to setup a mock expection for the Map function in AutoMapper. I extract the IMapper interface …
c# moq automapperI have a mock that i have setup like this. I need to return the same value that was passed …
mocking moqI have an api service that calls another api service. When I set up the Mock objects, it failed with …
c# linq unit-testing expression moqI'm checking ModelState.IsValid in my controller action method that creates an Employee like this: [HttpPost] public virtual ActionResult Create(…
c# asp.net-mvc unit-testing mocking moq.NET Core 2.1 comes with this new factory called HttpClientFactory, but I can't figure out how to mock it to unit …
c# unit-testing moq asp.net-core-2.1 httpclientfactory