public void Initialize(string title = "(no title)", EGenre genre = EGenre.None, List <Actor> actors = null) { Title = title; Genre = genre; Actors = actors ?? new List <Actor> { new Actor() }; //new List<Actor>() }
public void Initialize(string title = "(no title)", EGenre genre = EGenre.Action, List <Actor> actors = null) { Title = title; Genre = genre; Actors = actors ?? new List <Actor> { new Actor() }; //?? is the null operator, it says if left side is null, then use the right }
public Serie(int id, EGenre genre, string title, string description, int year) { Id = id; Title = title; Description = description; Year = year; Removed = false; }
public void Initialize(string t = "(no title)", EGenre genre = EGenre.Action, List <Actor> actors = null) { Title = t; Genre = genre; Actors = actors ?? new List <Actor> { new Actor() }; }
public UpdatePersonCommand(Guid id, string name, DateTime birthDate, EGenre genre, ICollection <Address> address, ICollection <Phone> phone, string phototgraph = null) { this.Id = id; this.Name = name; this.BirthDate = birthDate; this.Genre = genre; this.Photograph = phototgraph; this.Phone = phone; this.Address = address; }
public CreatePersonCommand(string name, string cpf, DateTime birthDate, EGenre genre, ICollection <Address> address, ICollection <Phone> phone, string phototgraph = null) { this.Name = name; this.CPF = cpf; this.BirthDate = birthDate; this.Genre = genre; this.Photograph = phototgraph; this.Phone = phone; this.Address = address; }
public CreatePersonCommand(string name, string cpf, DateTime birthDate, EGenre genre, ICollection<Address> address, ICollection<Phone> phone, string phototgraph = null) { this.Name = name; this.CPF = cpf; this.BirthDate = birthDate; this.Genre = genre; this.Photograph = phototgraph; this.Phone = phone; this.Address = address; }
public Game(int id, EGenre genre, string name, string description, int relYear, string dev, string publi, int price) { this.Id = id; this.Genre = genre; this.Name = name; this.Description = description; this.ReleaseYear = relYear; this.Developer = dev; this.Publisher = publi; this.Price = price; this.Available = true; }
public Person(string name, string cpf, DateTime birthDate, EGenre genre, ICollection <Address> address, ICollection <Phone> phone, string phototgraph = null) { this.Id = Guid.NewGuid(); this.Name = name; this.CPF = cpf; this.BirthDate = birthDate; this.Genre = genre; this.Photograph = phototgraph; this.Phone = new List <Phone>(); phone.ToList().ForEach(x => AddPhone(x)); this.Address = new List <Address>(); address.ToList().ForEach(x => AddAddress(x)); }
public Person(string name, string cpf, DateTime birthDate, EGenre genre, ICollection<Address> address, ICollection<Phone> phone, string phototgraph = null) { this.Id = Guid.NewGuid(); this.Name = name; this.CPF = cpf; this.BirthDate = birthDate; this.Genre = genre; this.Photograph = phototgraph; this.Phone = new List<Phone>(); phone.ToList().ForEach(x => AddPhone(x)); this.Address = new List<Address>(); address.ToList().ForEach(x => AddAddress(x)); }
public void Initialize( string title = "(default title)", EGenre genre = EGenre.Action, List <Actor> actors = null //new List<Actor>() //{Actors.Add(new Actor())} ) { Title = title; Genre = genre; Actors = actors ?? new List <Actor> { new Actor() }; //reference values may not be used as default values as they may not exist at runtime, the compiler will not accept these // ^null operator, if the value to the left is null, use the value to the right }
public DonatorUser(Guid id, Guid userId, string name, EGenre genre, bool activedBloodNotification, bool activedHairNotification, bool activedBreastMilkNotification, Guid?hairId = null, Guid?bloodId = null) { Id = id; UserId = userId; Name = name; Genre = genre; ActivedBloodNotification = activedBloodNotification; ActivedHairNotification = activedHairNotification; ActivedBreastMilkNotification = activedBreastMilkNotification; HairId = hairId; BloodId = bloodId; }
public RegisterNewDonatorUserCommand(string name, EGenre genre, string email, string password, string confirmPassword, bool activedBloodNotification, bool activedHairNotification, bool activedBreastMilkNotification, Guid?hairId = null, Guid?bloodId = null) { Name = name; Genre = genre; Email = email; Password = password; ConfirmPassword = confirmPassword; ActivedBloodNotification = activedBloodNotification; ActivedHairNotification = activedHairNotification; ActivedBreastMilkNotification = activedBreastMilkNotification; HairId = hairId; BloodId = bloodId; }
public MovieClass(string t, EGenre genre, List <Actor> actors) { Initialize(t, genre, actors); }
public Multilogy(string content, string name, string author, EGenre ganre) : base(content, name, author) { novels = new List <Novel>(); }
public Movie(string title, EGenre genre) { Initialize(title, genre); }
public Novel(string content, string name, string author, EGenre ganre) : base(content, name, author) { this.ganre = ganre; }
public Movie(string title, EGenre genre) { Initialize(genre: genre, title: title); //named parameters (not by position) }
public static bool ChangeGenreScopeIsValid(this Person person, EGenre genre) { return(AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(genre, Errors.InvalidGenre) )); }
public MovieClass(string t, EGenre genre) { Initialize(genre: genre, t: t); }
public Movie(string title, EGenre genre, List <Actor> actors) { Initialize(title, genre, actors); }
public Movie(string title, EGenre genre) { Initialize(genre: genre, title: title); }
public static bool ChangeGenreScopeIsValid(this Person person, EGenre genre) { return AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(genre, Errors.InvalidGenre) ); }