public AnnexCollection(Guid notificationId)
 {
     NotificationId = notificationId;
     ProcessOfGeneration = new ProcessOfGenerationAnnex();
     WasteComposition = new WasteCompositionAnnex();
     TechnologyEmployed = new TechnologyEmployedAnnex();
 }
Example #2
0
 public AnnexCollection(Guid notificationId)
 {
     NotificationId      = notificationId;
     ProcessOfGeneration = new ProcessOfGenerationAnnex();
     WasteComposition    = new WasteCompositionAnnex();
     TechnologyEmployed  = new TechnologyEmployedAnnex();
 }
        public void RemoveAnnex(Guid fileId)
        {
            if (ProcessOfGeneration.FileId == fileId)
            {
                ProcessOfGeneration = new ProcessOfGenerationAnnex();
            }
            else if (TechnologyEmployed.FileId == fileId)
            {
                TechnologyEmployed = new TechnologyEmployedAnnex();
            }
            else if (WasteComposition.FileId == fileId)
            {
                WasteComposition = new WasteCompositionAnnex();
            }

            RaiseEvent(new DeleteAnnexEvent(fileId));
        }
Example #4
0
        public void RemoveAnnex(Guid fileId)
        {
            if (ProcessOfGeneration.FileId == fileId)
            {
                ProcessOfGeneration = new ProcessOfGenerationAnnex();
            }
            else if (TechnologyEmployed.FileId == fileId)
            {
                TechnologyEmployed = new TechnologyEmployedAnnex();
            }
            else if (WasteComposition.FileId == fileId)
            {
                WasteComposition = new WasteCompositionAnnex();
            }

            RaiseEvent(new DeleteAnnexEvent(fileId));
        }
        public void SetProcessOfGenerationAnnex(ProcessOfGenerationAnnex processOfGenerationAnnex)
        {
            Guard.ArgumentNotNull(() => processOfGenerationAnnex, processOfGenerationAnnex);

            ProcessOfGeneration = processOfGenerationAnnex;
        }
Example #6
0
        public void SetProcessOfGenerationAnnex(ProcessOfGenerationAnnex processOfGenerationAnnex)
        {
            Guard.ArgumentNotNull(() => processOfGenerationAnnex, processOfGenerationAnnex);

            ProcessOfGeneration = processOfGenerationAnnex;
        }