コード例 #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);
        }
コード例 #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;
 }
コード例 #3
0
ファイル: Report.cs プロジェクト: Llimaa/HackathonConstrutec
 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;
 }
コード例 #4
0
        public void AddResponsible(Responsible responsible)
        {
            Responsibles.Add(responsible);

            AddNotifications(responsible);
        }