コード例 #1
0
 public AnnexCollection(Guid notificationId)
 {
     NotificationId = notificationId;
     ProcessOfGeneration = new ProcessOfGenerationAnnex();
     WasteComposition = new WasteCompositionAnnex();
     TechnologyEmployed = new TechnologyEmployedAnnex();
 }
コード例 #2
0
ファイル: AnnexCollection.cs プロジェクト: DEFRA/prsd-iws
 public AnnexCollection(Guid notificationId)
 {
     NotificationId      = notificationId;
     ProcessOfGeneration = new ProcessOfGenerationAnnex();
     WasteComposition    = new WasteCompositionAnnex();
     TechnologyEmployed  = new TechnologyEmployedAnnex();
 }
コード例 #3
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));
        }
コード例 #4
0
ファイル: AnnexCollection.cs プロジェクト: DEFRA/prsd-iws
        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));
        }
コード例 #5
0
        public void SetTechnologyEmployedAnnex(TechnologyEmployedAnnex technologyEmployedAnnex)
        {
            Guard.ArgumentNotNull(() => technologyEmployedAnnex, technologyEmployedAnnex);

            TechnologyEmployed = technologyEmployedAnnex;
        }
コード例 #6
0
ファイル: AnnexCollection.cs プロジェクト: DEFRA/prsd-iws
        public void SetTechnologyEmployedAnnex(TechnologyEmployedAnnex technologyEmployedAnnex)
        {
            Guard.ArgumentNotNull(() => technologyEmployedAnnex, technologyEmployedAnnex);

            TechnologyEmployed = technologyEmployedAnnex;
        }