public Office(string name, OfficeType officeType, string description) { if (name == null) throw new ArgumentNullException("name", "Null passed to Office Constructor"); if (officeType == null) throw new ArgumentNullException("officeType", "Null passed to Office Constructor"); if (description == null) throw new ArgumentNullException("description", "Null passed to Office Constructor"); this.OfficeId = Guid.NewGuid(); this.OfficeName = name; this.OfficeType = officeType; this.Description = description; }
public Office(string name, OfficeType officeType, string description) { if (name == null) { throw new ArgumentNullException("name", "Null passed to Office Constructor"); } if (officeType == null) { throw new ArgumentNullException("officeType", "Null passed to Office Constructor"); } if (description == null) { throw new ArgumentNullException("description", "Null passed to Office Constructor"); } this.OfficeId = Guid.NewGuid(); this.OfficeName = name; this.OfficeType = officeType; this.Description = description; }