public async Task CanCreateOrder() { OrderAccess sut = CreateSystemUnderTest(); Order order = await sut.CreateOrderAsync(Guid.Parse("56DEF7D9-061C-4A26-BDF6-81695B074DD7")); Assert.NotNull(order); }
public async Task ThrowsErrorWhenCreatingOrderForNonCustomer() { OrderAccess sut = CreateSystemUnderTest(); await Assert.ThrowsAsync <CustomerNotFoundException>(async() => await sut.CreateOrderAsync(Guid.NewGuid())); }