コード例 #1
0
 public RecoveryOperationInfoMap(
     IMap <NotificationApplication, string> preconsentedAnswerMap,
     IMap <TechnologyEmployed, TechnologyEmployedData> technologyEmployedMap,
     ITechnologyEmployedRepository technologyEmployedRepository)
 {
     this.preconsentedAnswerMap        = preconsentedAnswerMap;
     this.technologyEmployedMap        = technologyEmployedMap;
     this.technologyEmployedRepository = technologyEmployedRepository;
 }
コード例 #2
0
        public RequiredAnnexesTests()
        {
            var notificationApplicationRepository = A.Fake<INotificationApplicationRepository>();
            technologyEmployedRepository = A.Fake<ITechnologyEmployedRepository>();

            notification = new TestableNotificationApplication();
            notification.Id = notificationId;
            technologyEmployed = TechnologyEmployed.CreateTechnologyEmployedWithFurtherDetails(notificationId, "details", "further details");

            A.CallTo(() => notificationApplicationRepository.GetById(notificationId)).Returns(notification);

            A.CallTo(() => technologyEmployedRepository.GetByNotificaitonId(notificationId))
                .Returns(technologyEmployed);

            requiredAnnexes = new RequiredAnnexes(notificationApplicationRepository, technologyEmployedRepository);
        }
コード例 #3
0
        public RequiredAnnexesTests()
        {
            var notificationApplicationRepository = A.Fake <INotificationApplicationRepository>();

            technologyEmployedRepository = A.Fake <ITechnologyEmployedRepository>();

            notification       = new TestableNotificationApplication();
            notification.Id    = notificationId;
            technologyEmployed = TechnologyEmployed.CreateTechnologyEmployedWithFurtherDetails(notificationId, "details", "further details");

            A.CallTo(() => notificationApplicationRepository.GetById(notificationId)).Returns(notification);

            A.CallTo(() => technologyEmployedRepository.GetByNotificaitonId(notificationId))
            .Returns(technologyEmployed);

            requiredAnnexes = new RequiredAnnexes(notificationApplicationRepository, technologyEmployedRepository);
        }
コード例 #4
0
 public RequiredAnnexes(INotificationApplicationRepository notificationRepository,
     ITechnologyEmployedRepository technologyEmployedRepository)
 {
     this.notificationRepository = notificationRepository;
     this.technologyEmployedRepository = technologyEmployedRepository;
 }
コード例 #5
0
ファイル: RequiredAnnexes.cs プロジェクト: DEFRA/prsd-iws
 public RequiredAnnexes(INotificationApplicationRepository notificationRepository,
                        ITechnologyEmployedRepository technologyEmployedRepository)
 {
     this.notificationRepository       = notificationRepository;
     this.technologyEmployedRepository = technologyEmployedRepository;
 }
コード例 #6
0
 public SetTechnologyEmployedHandler(IwsContext context, ITechnologyEmployedRepository technologyEmployedRepository)
 {
     this.context = context;
     this.technologyEmployedRepository = technologyEmployedRepository;
 }
コード例 #7
0
 public GetTechnologyEmployedHandler(ITechnologyEmployedRepository technologyEmployedRepository,
                                     IMap <TechnologyEmployed, TechnologyEmployedData> mapper)
 {
     this.technologyEmployedRepository = technologyEmployedRepository;
     this.mapper = mapper;
 }
コード例 #8
0
 public MovementOperationBlockFactory(INotificationApplicationRepository notificationApplicationRepository,
                                      ITechnologyEmployedRepository technologyEmployedRepository)
 {
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.technologyEmployedRepository      = technologyEmployedRepository;
 }
コード例 #9
0
 public MovementOperationBlockFactory(INotificationApplicationRepository notificationApplicationRepository,
     ITechnologyEmployedRepository technologyEmployedRepository)
 {
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.technologyEmployedRepository = technologyEmployedRepository;
 }