Ejemplo n.º 1
0
        public async Task CanCreateOrder()
        {
            OrderAccess sut = CreateSystemUnderTest();

            Order order = await sut.CreateOrderAsync(Guid.Parse("56DEF7D9-061C-4A26-BDF6-81695B074DD7"));

            Assert.NotNull(order);
        }
Ejemplo n.º 2
0
        public async Task ThrowsErrorWhenCreatingOrderForNonCustomer()
        {
            OrderAccess sut = CreateSystemUnderTest();

            await Assert.ThrowsAsync <CustomerNotFoundException>(async() => await sut.CreateOrderAsync(Guid.NewGuid()));
        }