public async Task TestSearchfromRepository(string search) { using (var transaction = Fixture.Connection.BeginTransaction()) { using (var context = Fixture.CreateContext(transaction)) { var carsRepo = new CarsRepository(context); var filtered = carsRepo .SearchQuery( carsRepo.GetIQueryableCars(), search); filtered = carsRepo .SearchQueryPrice(filtered, 15000M, null); //filtered = carsRepo // .SearchQueryDate(filtered, // DateTime.Parse("2020-02-19"), null); filtered = carsRepo .SearchQueryDate(filtered, null, DateTime.Parse("2020-02-19")); var result = await filtered.ToListAsync(); Assert.NotNull(result); Assert.IsAssignableFrom <List <Car> >(result); if (result.Count > 0) { output.WriteLine($"result count {result.Count}"); result.ForEach(c => output.WriteLine($"{c.Brand} \t " + $" {c.Id} \t" + $" {c.Drive} \t" + $" {c.Price} \t" + $"{c.Date} \t" + $"{c.Color} \t" )); } } } }