Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public async Task ShouldThrowIfCustomerAlreadyRegistered()
var email = "";
var customerRepositoryStub = CreateRepositoryWith(TestCustomerWith(email));
var testCustomerRegistrationRequest = new CustomerRegistrationRequest(
dateOfBirth: new DateTime(1975, 2, 21),
firstName: "Joe",
lastName: "Bloggs");
// Create the system under test with a stub and a dummy
var useCase = new CustomerRegistrationUseCase(
new Mock<IEventBus>().Object);
await Assert.ThrowsAsync<CustomerAlreadyExists>(()=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.