Example #1
0
        public void WhenBuildWithTitle_ExpectEntityToHaveSameValue(string expectedTitle)
        {
            var entity = new TvBuilder(expectedTitle);

            entity.Title.Should().Be(expectedTitle);
        }
Example #2
0
        public void WhenBuildWithSeasons_ExpectEntityToHaveSameValue(int expectedSeasons)
        {
            var entity = new TvBuilder("Friday Night Lights").WithSeasons(expectedSeasons);

            entity.Season.Should().Be(expectedSeasons);
        }
Example #3
0
        public void WhenBuildWithoutSeasons_ExpectEntityToBeNull()
        {
            var entity = new TvBuilder("Friday Night Lights").Build();

            entity.Seasons.Should().BeNull();
        }
Example #4
0
        public void WhenBuildWithEpisodes_ExpectEntityToHaveSameValue(int expectedEpisodes)
        {
            var entity = new TvBuilder("Friday Night Lights").WithEpisodes(expectedEpisodes).Build();

            entity.Episodes.Should().Be(expectedEpisodes);
        }