public GeneralBlockFactory(INotificationApplicationRepository notificationApplicationRepository,
     IShipmentInfoRepository shipmentInfoRepository, IFacilityRepository facilityRepository)
 {
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.shipmentInfoRepository = shipmentInfoRepository;
     this.facilityRepository = facilityRepository;
 }
 public CompleteNotification(INotificationAssessmentRepository notificationAssessmentRepository, IFacilityRepository facilityRepository,
     INotificationTransactionCalculator notificationTransactionCalculator)
 {
     this.notificationAssessmentRepository = notificationAssessmentRepository;
     this.facilityRepository = facilityRepository;
     this.notificationTransactionCalculator = notificationTransactionCalculator;
 }
 public DecisionRequiredBy(IImportNotificationRepository notificationRepository, 
     IFacilityRepository facilityRepository, 
     IDecisionRequiredByCalculator decisionRequiredByCalculator)
 {
     this.notificationRepository = notificationRepository;
     this.facilityRepository = facilityRepository;
     this.decisionRequiredByCalculator = decisionRequiredByCalculator;
 }
 public NotificationChargeCalculator(IShipmentInfoRepository shipmentInfoRepository, 
     INotificationApplicationRepository notificationApplicationRepository,
     IPricingStructureRepository pricingStructureRepository,
     IFacilityRepository facilityRepository,
     INumberOfShipmentsHistotyRepository numberOfShipmentsHistotyRepository)
 {
     this.shipmentInfoRepository = shipmentInfoRepository;
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.pricingStructureRepository = pricingStructureRepository;
     this.facilityRepository = facilityRepository;
     this.numberOfShipmentsHistotyRepository = numberOfShipmentsHistotyRepository;
 }
        public CompleteNotificationTests()
        {
            notificationAssessmentRepository = A.Fake<INotificationAssessmentRepository>();
            facilityRepository = A.Fake<IFacilityRepository>();
            notificationTransactionCalculator = A.Fake<INotificationTransactionCalculator>();

            completeNotification = new CompleteNotification(notificationAssessmentRepository, facilityRepository,
                notificationTransactionCalculator);

            notificationAssessment = new NotificationAssessment(notificationId);

            A.CallTo(() => notificationAssessmentRepository.GetByNotificationId(notificationId))
                .Returns(notificationAssessment);
        }
 public CreateNotificationApplicationHandler(
     NotificationApplicationFactory notificationApplicationFactory,
     IwsContext context,
     INotificationApplicationRepository notificationApplicationRepository,
     IFacilityRepository facilityRepository,
     ICarrierRepository carrierRepository,
     IProducerRepository producerRepository)
 {
     this.notificationApplicationFactory = notificationApplicationFactory;
     this.context = context;
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.facilityRepository = facilityRepository;
     this.carrierRepository  = carrierRepository;
     this.producerRepository = producerRepository;
 }
        public NotificationChargeCalculatorTests()
        {
            notificationId = new Guid("C4C62654-048C-45A2-BF7F-9837EFCF328F");

            shipmentInfoRepository = A.Fake<IShipmentInfoRepository>();
            shipmentInfo = A.Fake<ShipmentInfo>();
            notificationApplicationRepository = A.Fake<INotificationApplicationRepository>();
            pricingStructureRepository = A.Fake<IPricingStructureRepository>();
            facilityRepository = A.Fake<IFacilityRepository>();
            numberOfShipmentsHistotyRepository = A.Fake<INumberOfShipmentsHistotyRepository>();

            notificationApplication = new TestableNotificationApplication();

            chargeCalculator = new NotificationChargeCalculator(shipmentInfoRepository, notificationApplicationRepository, pricingStructureRepository, facilityRepository, numberOfShipmentsHistotyRepository);
        }
Exemplo n.º 8
0
        public NotificationChargeCalculatorTests()
        {
            notificationId = new Guid("C4C62654-048C-45A2-BF7F-9837EFCF328F");

            shipmentInfoRepository             = A.Fake <IShipmentInfoRepository>();
            shipmentInfo                       = A.Fake <ShipmentInfo>();
            notificationApplicationRepository  = A.Fake <INotificationApplicationRepository>();
            pricingStructureRepository         = A.Fake <IPricingStructureRepository>();
            facilityRepository                 = A.Fake <IFacilityRepository>();
            numberOfShipmentsHistotyRepository = A.Fake <INumberOfShipmentsHistotyRepository>();

            notificationApplication = new TestableNotificationApplication();

            chargeCalculator = new NotificationChargeCalculator(shipmentInfoRepository, notificationApplicationRepository, pricingStructureRepository, facilityRepository, numberOfShipmentsHistotyRepository);
        }
 public GetKeyDatesSummaryInformationHandler(INotificationApplicationRepository notificationRepository,
                                             INotificationAssessmentRepository assessmentRepository,
                                             INotificationAssessmentDatesSummaryRepository datesSummaryRepository,
                                             INotificationAssessmentDecisionRepository decisionRepository,
                                             IFacilityRepository facilityRepository,
                                             IConsultationRepository consultationRepository,
                                             IMapper mapper)
 {
     this.notificationRepository = notificationRepository;
     this.assessmentRepository   = assessmentRepository;
     this.datesSummaryRepository = datesSummaryRepository;
     this.decisionRepository     = decisionRepository;
     this.facilityRepository     = facilityRepository;
     this.mapper = mapper;
     this.consultationRepository = consultationRepository;
 }
Exemplo n.º 10
0
        public ScenarioCampaignResultsDataHandler(IRepositoryFactory repositoryFactory, AWSSettings awsSettings,
                                                  ICloudStorage cloudStorage, IScenarioCampaignResultReportCreator campaignResultReportCreator,
                                                  IFeatureManager featureManager, IAuditEventRepository auditEventRepository, IMapper mapper,
                                                  IFacilityRepository facilityRepository)
        {
            _repositoryFactory           = repositoryFactory;
            _campaignResultReportCreator = campaignResultReportCreator;
            _awsSettings          = awsSettings;
            _cloudStorage         = cloudStorage;
            _auditEventRepository = auditEventRepository;
            _mapper             = mapper;
            _facilityRepository = facilityRepository;

            _includeScenarioPerformanceMeasurementKpIs = featureManager.IsEnabled(nameof(ProductFeature.ScenarioPerformanceMeasurementKPIs));
            _saveData = featureManager.IsEnabled(nameof(ProductFeature.PrePostCampaignResults));
        }
Exemplo n.º 11
0
 public MnchService(IPatientMnchRepository patientMnchRepository, IAncVisitRepository ancVisitRepository, IFacilityRepository facilityRepository, ILiveSyncService syncService, IMnchEnrolmentRepository mnchEnrolmentRepository, IMnchArtRepository mnchArtRepository, IMatVisitRepository matVisitRepository, IPncVisitRepository pncVisitRepository, IMotherBabyPairRepository motherBabyPairRepository, ICwcEnrolmentRepository cwcEnrolmentRepository, ICwcVisitRepository cwcVisitRepository, IHeiRepository heiRepository, IMnchLabRepository mnchLabRepository)
 {
     _patientMnchRepository    = patientMnchRepository;
     _ancVisitRepository       = ancVisitRepository;
     _facilityRepository       = facilityRepository;
     _syncService              = syncService;
     _mnchEnrolmentRepository  = mnchEnrolmentRepository;
     _mnchArtRepository        = mnchArtRepository;
     _matVisitRepository       = matVisitRepository;
     _pncVisitRepository       = pncVisitRepository;
     _motherBabyPairRepository = motherBabyPairRepository;
     _cwcEnrolmentRepository   = cwcEnrolmentRepository;
     _cwcVisitRepository       = cwcVisitRepository;
     _heiRepository            = heiRepository;
     _mnchLabRepository        = mnchLabRepository;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="formularyRepository"></param>
 /// <param name="facilityRepository"></param>
 /// <param name="nDCRepository"></param>
 /// <param name="facilityNDCAssocRepository"></param>
 /// <param name="unitOfWork"></param>
 /// <param name="mapper"></param>
 /// <param name="itemReository"></param>
 /// <param name="medicationItemRepository"></param>
 public FormularyManager(
     IFormularyRepository formularyRepository,
     IFacilityRepository facilityRepository,
     INDCRepository nDCRepository,
     IFacilityNDCAssocRepository facilityNDCAssocRepository, IItemRepository itemReository, IMedicationItemRepository medicationItemRepository,
     IUnitOfWork unitOfWork, IMapper mapper
     )
 {
     _itemReository              = itemReository;
     _medicationItemRepository   = medicationItemRepository;
     _formularyRepository        = formularyRepository;
     _facilityRepository         = facilityRepository;
     _nDCRepository              = nDCRepository;
     _facilityNDCAssocRepository = facilityNDCAssocRepository;
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
 }
Exemplo n.º 13
0
        public DecisionRequiredByTests()
        {
            notificationId     = new Guid();
            competentAuthority = UKCompetentAuthority.England;

            decisionRequiredByCalculator = A.Fake <IDecisionRequiredByCalculator>();
            facilityRepository           = A.Fake <IFacilityRepository>();
            importNotificationRepository = A.Fake <IImportNotificationRepository>();
            assessment = new ImportNotificationAssessment(notificationId);

            decisionRequiredBy = new DecisionRequiredBy(importNotificationRepository, facilityRepository, decisionRequiredByCalculator);

            decisionRequiredByDateWhenPopulatedInDB    = new DateTime(2019, 1, 1);
            decisionRequiredByDateWhenNotPopulatedInDB = null;
            acknowledgedDateWhenHasValue   = new DateTime(2019, 2, 2);
            acknowledgedDateWhenHasNoValue = null;
            decisionRequiredByDateWhenAcknowledgeDateHasNoValue = null;
            decisionRequiredByDateWhenCalculated = new DateTime(2019, 3, 3);
        }
Exemplo n.º 14
0
        public DecisionRequiredByTests()
        {
            var applicationId      = new Guid();
            var userId             = new Guid();
            var notificationType   = NotificationType.Recovery;
            var competentAuthority = UKCompetentAuthority.England;
            var notificationNumber = 1;

            decisionRequiredByCalculator = A.Fake <IDecisionRequiredByCalculator>();
            facilityRepository           = A.Fake <IFacilityRepository>();
            assessment  = new NotificationAssessment(applicationId);
            application = new NotificationApplication(userId, notificationType, competentAuthority, notificationNumber);

            decisionRequiredBy = new DecisionRequiredBy(decisionRequiredByCalculator, facilityRepository);

            decisionRequiredByDateWhenPopulatedInDB    = new DateTime(2019, 1, 1);
            decisionRequiredByDateWhenNotPopulatedInDB = null;
            acknowledgedDateWhenHasValue   = new DateTime(2019, 2, 2);
            acknowledgedDateWhenHasNoValue = null;
            decisionRequiredByDateWhenAcknowledgeDateHasNoValue = null;
            decisionRequiredByDateWhenCalculated = new DateTime(2019, 3, 3);
        }
Exemplo n.º 15
0
 public AdminControllerTestBase()
 {
     facilityRepository = MockRepository.GenerateMock<IFacilityRepository>();
     meetingRepository = MockRepository.GenerateMock<IMeetingRepository>();
     userSession = MockRepository.GenerateMock<IUserSession>();
 }
Exemplo n.º 16
0
 public FacilityService(IFacilityRepository iFacilityRepository)
 {
     _iFacilityRepository = iFacilityRepository;
 }
Exemplo n.º 17
0
 public MovementFacilityBlockFactory(IFacilityRepository facilityRepository)
 {
     this.facilityRepository = facilityRepository;
 }
Exemplo n.º 18
0
 public ReportService()
 {
     this.reportRepository   = new ReportRepository();
     this.facilityRepository = new FacilityRepository();
 }
Exemplo n.º 19
0
 public SiteService(ISiteRepository siteRepository, IFacilityRepository facilityRepository)
     : base(siteRepository)
 {
     _facilityRepository = facilityRepository;
 }
Exemplo n.º 20
0
 public MpiService(IMasterPatientIndexRepository manifestRepository, IFacilityRepository facilityRepository)
 {
     _manifestRepository = manifestRepository;
     _facilityRepository = facilityRepository;
 }
Exemplo n.º 21
0
 public HtsService(IHtsClientRepository clientRepository, IHtsClientLinkageRepository linkageRepository, IHtsClientPartnerRepository partnerRepository, IFacilityRepository facilityRepository, IHtsClientTestsRepository htsClientTestsRepository, IHtsClientTracingRepository clientTracingRepository, IHtsPartnerNotificationServicesRepository htsPartnerNotificationServicesRepository, IHtsPartnerTracingRepository partnerTracingRepository, IHtsHtsTestKitsRepository kitsRepository, ILiveSyncService syncService)
 {
     _clientRepository         = clientRepository;
     _linkageRepository        = linkageRepository;
     _partnerRepository        = partnerRepository;
     _facilityRepository       = facilityRepository;
     _htsClientTestsRepository = htsClientTestsRepository;
     _clientTracingRepository  = clientTracingRepository;
     _htsPartnerNotificationServicesRepository = htsPartnerNotificationServicesRepository;
     _partnerTracingRepository = partnerTracingRepository;
     _kitsRepository           = kitsRepository;
     _syncService = syncService;
 }
Exemplo n.º 22
0
 public DeleteFacilityCommandHandler(IFacilityRepository repository)
 {
     this.repository = repository;
 }
 public MovementFacilityBlockFactory(IFacilityRepository facilityRepository)
 {
     this.facilityRepository = facilityRepository;
 }
Exemplo n.º 24
0
 public UndeleteModel(IFacilityRepository repository) => _repository = repository;
Exemplo n.º 25
0
 public void Setup()
 {
     _facilityRepository = _serviceProvider.GetService <IFacilityRepository>();
 }
Exemplo n.º 26
0
 public PreconsentedAnswerMap(IFacilityRepository facilityRepository)
 {
     this.facilityRepository = facilityRepository;
 }
Exemplo n.º 27
0
 public FacilityService(IFacilityRepository facilityRepository) => this.facilityRepository = facilityRepository;
 public SnapMasterFacilityHandler(IMasterFacilityRepository masterFacilityRepository, IFacilityRepository facilityRepository, IMediator mediator)
 {
     _masterFacilityRepository = masterFacilityRepository;
     _facilityRepository       = facilityRepository;
     _mediator = mediator;
 }
Exemplo n.º 29
0
 public FacilitiesFunction(IFacilityRepository facilityRepository)
 {
     _facilityRepository = facilityRepository;
 }
Exemplo n.º 30
0
        //private readonly IFacilityRepository _frepository;

        public HomeController(IPlanetRepository repository, IFacilityRepository frepository)
            : base(repository)
        {
            //_frepository = frepository;
        }
Exemplo n.º 31
0
 public FacilityService(IFacilityRepository ifacilityrepository)
 {
     this._ifacilityrepository = ifacilityrepository;
 }
Exemplo n.º 32
0
 public FacilityController(IFacilityRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 33
0
 public CreateFacilityCommandHandler(IFacilityRepository repository, IMediator mediator, ISecurityContext securityContext)
 {
     this.repository      = repository;
     this.mediator        = mediator;
     this.securityContext = securityContext;
 }
 public SetAllFacilitiesPreconsented(IFacilityRepository facilityRepository)
 {
     this.facilityRepository = facilityRepository;
 }
Exemplo n.º 35
0
 public SiteService(ISiteRepository siteRepository, IFacilityRepository facilityRepository, ILogger <SiteService> logger)
     : base(siteRepository, logger)
 {
     _facilityRepository = facilityRepository;
 }
Exemplo n.º 36
0
 public GetInterimStatusHandler(IFacilityRepository facilityRepository,
                                INotificationAssessmentRepository notificationAssessmentRepository)
 {
     this.facilityRepository = facilityRepository;
     this.notificationAssessmentRepository = notificationAssessmentRepository;
 }
 public BookingAPIController(IFacilityRepository facilityRepository, IBookingRepository bookingRepository)
 {
     this.facilityRepository = facilityRepository;
     this.bookingRepository  = bookingRepository;
 }
 public DecisionRequiredBy(IDecisionRequiredByCalculator decisionRequiredByCalculator, IFacilityRepository facilityRepository)
 {
     this.decisionRequiredByCalculator = decisionRequiredByCalculator;
     this.facilityRepository = facilityRepository;
 }
Exemplo n.º 39
0
 public CompleteNotification(INotificationAssessmentRepository notificationAssessmentRepository, IFacilityRepository facilityRepository,
                             INotificationTransactionCalculator notificationTransactionCalculator)
 {
     this.notificationAssessmentRepository = notificationAssessmentRepository;
     this.facilityRepository = facilityRepository;
     this.notificationTransactionCalculator = notificationTransactionCalculator;
 }
Exemplo n.º 40
0
 public FacilityService(IFacilityRepository facilityRepository)
 {
     _facilityRepository = facilityRepository;
 }
Exemplo n.º 41
0
        public List <Facility> GetFacility()
        {
            IFacilityRepository _facilityDetailRepo = RepositoryFactory.Create <IFacilityRepository>(ContextTypes.EntityFramework);

            return(_facilityDetailRepo.GetAll().OrderBy(x => x.facility).ToList());
        }
Exemplo n.º 42
0
 public StatsController(IFacilityRepository facilityRepository)
 {
     _facilityRepository = facilityRepository;
 }