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); }
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); }
public GetAnnexesHandler(RequiredAnnexes requiredAnnexes, IAnnexCollectionRepository annexCollectionRepository) { this.requiredAnnexes = requiredAnnexes; this.annexCollectionRepository = annexCollectionRepository; }