public async Task GetMoviesBySearchText() { var options = new DbContextOptionsBuilder <MovieDBContext>().UseInMemoryDatabase(nameof(GetMoviesBySearchText)).Options; var dbContext = new MovieDBContext(options); CreateProducts(dbContext); var productProfile = new MovieProfile(); var configuration = new MapperConfiguration(cfg => cfg.AddProfile(productProfile)); var mapper = new Mapper(configuration); var movieProvider = new MovieProvider(dbContext, null, mapper); var result = await movieProvider.SeachMovieAsync("Siddarth"); Assert.True(result.IsSucess); }