public async Task GetAll_WithValidInput_ShouldReturnValidResult() { var dbContext = ApplicationDbContextCreatorInMemory.InitializeContext(); await this.SeedData(dbContext); var actorsRepository = new EfDeletableEntityRepository <Actor>(dbContext); var service = new ActorsService(actorsRepository); var result = service.GetAll <ActorViewModel>().ToList(); Assert.Equal(2, result.Count()); }