public static async Task GetOrder_ReturnsNull( CallOffId callOffId, SectionStatusService service) { var result = await service.GetOrder(callOffId); result.Should().BeNull(); }
public static async Task GetOrder_ReturnsOrder( [Frozen] ApplicationDbContext context, Order order, SectionStatusService service) { context.Order.Add(order); await context.SaveChangesAsync(); var result = await service.GetOrder(order.CallOffId); result.Should().BeEquivalentTo(order); }