Apr 29, 2020 · I have a simple class called MyRequestHandler, and it has a method called ProcessRequest that simply takes a request object, maps it to a return object and ...
Missing: documentation | Show results with:documentation
Jan 18, 2021 · I have a generic cache class. It checks in the cache if an entity with the passed guid exists. If this is not the case, the repository is called.
Missing: documentation | Show results with:documentation
Jul 6, 2014 · site logo Join Stack Overflow · OR · Let's set up your homepage Select a few topics you're interested in: · MOQ usage of setup and verify.
Missing: documentation | Show results with:documentation
Sep 27, 2012 · You can't do this with Moq if you use the same object unless one of the method is virtual and you are basing your mock on a type rather than an interface.
Missing: documentation | Show results with:documentation
Jul 19, 2016 · I have a test method that creates a list of objects, I setup a service I use in my method I test to return the mock list. How ever, for some reason the setup ...
Missing: documentation | Show results with:documentation
Jul 28, 2023 · Moq setup statement for HttpClient.Send() method · An HTTP Request the data is in the body of the request (Content). See : stackoverflow.com/ ...
Missing: documentation | Show results with:documentation
Feb 5, 2018 · I'd like to create a utility method for creating my mock DbContext s, which sets up each of the context's DbSet s to return an empty list by default.
May 17, 2018 · Mocks are used to represent dependencies of a class allowing that class to be tested without using their actual dependencies.
Missing: documentation | Show results with:documentation
Mar 17, 2010 · You should use Moq to create your Mock object and set CallBase property to true to use the object behavior. From the Moq documentation: ...
Mar 20, 2013 · The Mock<> type will have a private Moq.SetupCollection named 'Setups'. While Moq.SetupCollection has a private List<Moq.Setup> named 'setups ...
Missing: documentation | Show results with:documentation