public void CalculateCollectionFilterValues_Should_Return_Two_Genres() { RunTest(() => { var movieOne = new MovieBuilder(Guid.NewGuid().ToString()).AddCollectionId("2").Build(); var movieTwo = new MovieBuilder(Guid.NewGuid().ToString()).Build(); var movieThree = new MovieBuilder(Guid.NewGuid().ToString()).Build(); _movieRepository.UpsertRange(new[] { movieOne, movieTwo, movieThree }); var collections = _movieRepository .CalculateCollectionFilterValues() .ToList(); collections.Should().NotBeNull(); collections.Count.Should().Be(2); collections[0].Label.Should().Be("1"); collections[0].Value.Should().Be("1"); collections[1].Label.Should().Be("2"); collections[1].Value.Should().Be("2"); }); }