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)); }
public void SetProcessOfGenerationAnnex(ProcessOfGenerationAnnex processOfGenerationAnnex) { Guard.ArgumentNotNull(() => processOfGenerationAnnex, processOfGenerationAnnex); ProcessOfGeneration = processOfGenerationAnnex; }