We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something like that (using Moq):
var aMock = new Mock<ISomeDependency>(); var aService = FluentBuilder<SomeService> .New() .WithStubFor<ICustomerRepository>(stub => stub.FindBy(anId)) .Returning(aCustomer) .WithMock(aMock) .Build(); aService.Do(); aMock.Verify(mock => mock.DoSomethingWith(aCustomer));
Or...
.... var aService = FluentBuilder<SomeService> .New() .WithStubFor(stub => stub.FindBy(anId), aCustomer) .WithMock(aMock) .Build(); ....
Same stub with more than one setup:
var aService = FluentBuilder<SomeService> .New() .WithStubFor<ICustomerRepository> .Returning(stub => stub.FindBy(1), aCustomer) .Returning(stub => stub.FindBy(2), otherCustomer) .Build();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Something like that (using Moq):
Or...
Same stub with more than one setup:
The text was updated successfully, but these errors were encountered: