public async Task GetAllByQuery_WithValidInput_ShouldReturnValidResult() { var dbContext = ApplicationDbContextCreatorInMemory.InitializeContext(); await this.SeedData(dbContext); var actorsRepository = new EfDeletableEntityRepository <Actor>(dbContext); var service = new ActorsService(actorsRepository); var result = service.GetAllByQuery <ActorViewModel>("1").ToList(); Assert.Single(result); }