public Inserted(int id, string guid, string name, string email, bool fail) { DomainException.When(!string.IsNullOrEmpty(guid), "GUID is required!"); DomainException.When(!string.IsNullOrEmpty(name), "Name is required!"); DomainException.When(!string.IsNullOrEmpty(email), "Email is required!"); this.ID = id; this.GUID = guid; this.Name = name; this.Email = email; this.Fail = fail; }
public Form(string name, string email, bool fail, string fileName, int fileSize, string fileType) { DomainException.When(!string.IsNullOrEmpty(name), "Name is required!"); DomainException.When(!string.IsNullOrEmpty(email), "Email is required!"); DomainException.When(!string.IsNullOrEmpty(fileName), "FileName is required!"); this.Name = name; this.Email = email; this.Fail = fail; this.FileName = fileName; this.FileType = fileType; }
public Form( string guid, string question1, string question2, string question3, string question4, string question5, bool approved, bool portuguese, string info, string name, string email, DateTime when ) { DomainException.When(!string.IsNullOrEmpty(guid), "Question1 is required!"); DomainException.When(!string.IsNullOrEmpty(question1), "Question1 is required!"); DomainException.When(!string.IsNullOrEmpty(question2), "Question2 is required!"); DomainException.When(!string.IsNullOrEmpty(question3), "Question3 is required!"); DomainException.When(!string.IsNullOrEmpty(question4), "Question4 is required!"); DomainException.When(!string.IsNullOrEmpty(question5), "Question5 is required!"); DomainException.When(!string.IsNullOrEmpty(name), "Name is required!"); DomainException.When(!string.IsNullOrEmpty(email), "Email is required!"); this.Guid = guid; this.Question1 = question1; this.Question2 = question2; this.Question3 = question3; this.Question4 = question4; this.Question5 = question5; this.Approved = approved; this.Portuguese = portuguese; this.Info = info; this.Name = name; this.Email = email; this.When = when; }