public Movie(OriginalTitle originalTitle, ReleaseDate releaseDate, OriginalLanguage originalLanguage, Adult adult, List <Session> session) : base(Guid.NewGuid().GetHashCode()) { OriginalTitle = originalTitle; ReleaseDate = releaseDate; OriginalLanguage = originalLanguage; Adult = adult; _session = session; }
public void Creates_When_OriginalLanguage_Is_Valid_Value(string originalLanguage) { //Arrange & Act var sut = new OriginalLanguage(originalLanguage); //Assert sut.Value.Should().Be(originalLanguage); }
public void Fails_When_OriginalLanguage_Is_Null_Or_Empty_Or_WhiteSpace(string originalLanguage) { //Arrange & Act Action action = () => { var sut = new OriginalLanguage(originalLanguage); }; //Assert action.Should().Throw <ArgumentException>(); }
public QueriedMovie( OriginalTitle title, string overview, string genre, OriginalLanguage language, DateTime releaseDate, string webSite, IReadOnlyList <string> keywords, SeatsSold seatsSold = null, Size size = null) { Title = title; Overview = overview; Genre = genre; Language = language; ReleaseDate = releaseDate; WebSite = webSite; Keywords = keywords; SeatsSold = seatsSold; Size = size; }
public void SaveEnum(OriginalLanguage value) { EnumDescription = value.ToString(); }