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;
 }
示例#2
0
        public void Creates_When_OriginalLanguage_Is_Valid_Value(string originalLanguage)
        {
            //Arrange & Act
            var sut = new OriginalLanguage(originalLanguage);

            //Assert
            sut.Value.Should().Be(originalLanguage);
        }
示例#3
0
        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;
 }
示例#5
0
 public void SaveEnum(OriginalLanguage value)
 {
     EnumDescription = value.ToString();
 }