public async Task ShouldReturnPriorityLevels() { var query = new GetDeliveriesQuery(); var result = await SendAsync(query); result.PriorityLevels.Should().NotBeEmpty(); }
public async Task ShouldReturnAllListsAndItems() { await AddAsync(new Zone { Title = "Zone1", Color = Color.Blue, Items = { new Delivery { Title = "Item1", Done = true }, new Delivery { Title = "Item2", Done = true }, new Delivery { Title = "Item3", Done = true }, new Delivery { Title = "Item4" }, new Delivery { Title = "Item5" }, new Delivery { Title = "Item6" }, new Delivery { Title = "Item7" } } }); var query = new GetDeliveriesQuery(); var result = await SendAsync(query); result.Zones.Should().HaveCount(1); result.Zones.First().Items.Should().HaveCount(7); }