public void CalculateSubtitleFilterValues_Should_Return_Two_Languages() { RunTest(() => { var movieOne = new MovieBuilder(Guid.NewGuid().ToString()).ReplaceSubtitleStream(new SubtitleStream { Language = "nl", DisplayTitle = "Dutch" }).Build(); var movieTwo = new MovieBuilder(Guid.NewGuid().ToString()).ReplaceSubtitleStream(new SubtitleStream { Language = "en", DisplayTitle = "English" }).Build(); var movieThree = new MovieBuilder(Guid.NewGuid().ToString()).ReplaceSubtitleStream(new SubtitleStream { Language = "en", DisplayTitle = "English" }).Build(); _movieRepository.UpsertRange(new[] { movieOne, movieTwo, movieThree }); var languages = _movieRepository .CalculateSubtitleFilterValues(new[] { "1" }) .ToList(); languages.Should().NotBeNull(); languages.Count.Should().Be(2); languages[0].Value.Should().Be("nl"); languages[0].Label.Should().Be("Dutch"); languages[1].Value.Should().Be("en"); languages[1].Label.Should().Be("English"); }); }