private void SetProperties(Department department, Tabulation tabulation) { Department = department; Tabulation = tabulation; }
private void Validate(Department department, Tabulation tabulation) { DomainValidation.When(department is null, "Selecione um departamento"); DomainValidation.When(tabulation is null, "Selecione uma tabulação"); }
public DepartTab(Department department, Tabulation tabulation) { Department = department; Tabulation = tabulation; }
private void SetProperties(Tabulation tabulation, Form Form) { Tabulation = tabulation; this.Form = Form; }
private void Validate(Tabulation tabulation, Form form) { DomainValidation.When(tabulation is null, "Selecione uma tabulação para criar o formulário"); DomainValidation.When(form is null, "Selecione o atributo que deseja adicionar no formulário"); }
public FormTab(Tabulation tabulation, Form form) { Validate(tabulation, form); SetProperties(tabulation, form); }