Esempio n. 1
0
        public void OptionalInformation(string image, Responsible resident, Responsible fiscal1, Responsible fiscal2)
        {
            Image    = image;
            Resident = resident;
            Fiscal1  = fiscal1;
            Fiscal2  = fiscal2;

            AddNotifications(resident, fiscal1, fiscal2);
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
        public void AddResponsible(Responsible responsible)
        {
            Responsibles.Add(responsible);

            AddNotifications(responsible);
        }