public void WhenBuildWithTitle_ExpectEntityToHaveSameValue(string expectedTitle) { var entity = new TvBuilder(expectedTitle); entity.Title.Should().Be(expectedTitle); }
public void WhenBuildWithSeasons_ExpectEntityToHaveSameValue(int expectedSeasons) { var entity = new TvBuilder("Friday Night Lights").WithSeasons(expectedSeasons); entity.Season.Should().Be(expectedSeasons); }
public void WhenBuildWithoutSeasons_ExpectEntityToBeNull() { var entity = new TvBuilder("Friday Night Lights").Build(); entity.Seasons.Should().BeNull(); }
public void WhenBuildWithEpisodes_ExpectEntityToHaveSameValue(int expectedEpisodes) { var entity = new TvBuilder("Friday Night Lights").WithEpisodes(expectedEpisodes).Build(); entity.Episodes.Should().Be(expectedEpisodes); }