public async Task GetAllAwaitingReservationsAsync_ShouldReturnCorrectResult() { MapperInitializer.InitializeMapper(); var context = ApplicationDbContextInMemoryFactory.InitializeContext(); var reservationRepository = new EfDeletableEntityRepository <Reservation>(context); var reservationsService = new ReservationsService(reservationRepository); var seeder = new DbContextTestsSeeder(); await seeder.SeedReservationsAsync(context); var result = await reservationsService.GetAllAwaitingReservationsAsync(); Assert.True(result.ToList().Count == 8, ErrorMessage); }