示例#1
0
        public async Task CountAsyncShouldReturnCorrectCount()
        {
            var db = DbInfrastructure.GetDatabase();

            const int Drinks = 150;

            await this.SeedData(db, Drinks, 5);

            var drinkService = new DrinkService(db);

            var count = await drinkService.CountAsync();

            count.Should().Be(Drinks);
        }