public void OptionalInformation(string image, Responsible resident, Responsible fiscal1, Responsible fiscal2) { Image = image; Resident = resident; Fiscal1 = fiscal1; Fiscal2 = fiscal2; AddNotifications(resident, fiscal1, fiscal2); }
public Comment(Report report, Responsible responsible, string title, string description) { new Contract() .IsNullOrEmpty(title, "Title", "O Título é campo obrigatório") .IsNullOrEmpty(description, "Description", "A Descrição é campo obrigatório"); Report = report; Responsible = responsible; Description = description; Title = title; }
public Report(string title, string image, string description, Responsible responsible, Construction construction) { new Contract() .IsNullOrEmpty(title, "Title", "O Título é campo obrigatório") .IsNullOrEmpty(description, "Description", "A Descrição é campo obrigatório") .IsNotNull(responsible, "Responsavel", "É necessario um Responsavel para Obra"); Title = title; Image = image; Description = description; Responsible = responsible; Construction = construction; DateReport = DateTime.Now; }
public void AddResponsible(Responsible responsible) { Responsibles.Add(responsible); AddNotifications(responsible); }