Past year
All results
- All results
- Verbatim
Oct 22, 2024 · You're looking for Moq's SetupSequence method, which can be used in-place of the Setup method. As seen in the following code snippet, it's possible to stack ...
Aug 1, 2024 · A quick reference to help the migration from Moq to NSubstitute.
Apr 29, 2024 · You could call "SetupSequence," and string together all of your specific requests and each specific response. Because NSubsitute doesn't have a way to ...
Jan 27, 2024 · This library helps you mocking EntityFramework contexts. Now you will be able to test methods that are using DbSet<TEntity> or DbQuery<TEntity> from DbContext ...
Apr 11, 2024 · Using Moq and AAA. There are basically 4 steps into building a test: 1/ Mock external dependencies; 2/ Arrange; 3/ Act; 4/ ...
Apr 19, 2024 · I'm struggling to unit test (using MOQ) await _graphServiceClient.Users["xxx@yyy.com"].SendMail.PostAsync(requestBody); Here's my setup.
Apr 26, 2024 · To mock a method with value parameters only, you would use the following syntax: dependencyMock .Setup(x => x.MethodWithNoOutParameter(It.IsAny<string>())) .
Missing: SetupSequence | Show results with:SetupSequence
May 15, 2024 · The .NET Core MongoDB Repository Pattern is a tried and tested approach that allows you to separate data access logic from the rest of your application.
Aug 8, 2024 · Moqを使用することで、簡単に依存関係をモックし、メソッドの呼び出しごとに異なる戻り値を設定することができます。本記事では、 SetupSequence メソッドを使用して ...
Aug 2, 2024 · Thus, we illustrate that reducing the MOQ has the greatest negative impact on setup times. However, the total setup time is strongly dependent on the setup ...