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 SetWasteCompositionAnnex(WasteCompositionAnnex wasteCompositionAnnex)
        {
            Guard.ArgumentNotNull(() => wasteCompositionAnnex, wasteCompositionAnnex);

            WasteComposition = wasteCompositionAnnex;
        }
Example #6
0
        public void SetWasteCompositionAnnex(WasteCompositionAnnex wasteCompositionAnnex)
        {
            Guard.ArgumentNotNull(() => wasteCompositionAnnex, wasteCompositionAnnex);

            WasteComposition = wasteCompositionAnnex;
        }