예제 #1
0
 public void Setup()
 {
     _outcomeViewModelBuilder = new Mock <IOutcomeViewModelBuilder>();
     _dosBuilder               = new Mock <IDOSBuilder>();
     _surgeryBuilder           = new Mock <ISurgeryBuilder>();
     _locationResultBuilder    = new Mock <ILocationResultBuilder>();
     _auditLogger              = new Mock <IAuditLogger>();
     _configuration            = new Mock <Configuration.IConfiguration>();
     _postCodeAllowedValidator = new Mock <IPostCodeAllowedValidator>();
     _viewRouter               = new Mock <IViewRouter>();
     _outcomeController        = new OutcomeController(_outcomeViewModelBuilder.Object, _dosBuilder.Object, _surgeryBuilder.Object, _locationResultBuilder.Object, _auditLogger.Object, _configuration.Object, _postCodeAllowedValidator.Object, _viewRouter.Object);
 }
예제 #2
0
        public void Setup()
        {
            _outcomeViewModelBuilder = new Mock <IOutcomeViewModelBuilder>();
            _dosBuilder = new Mock <IDOSBuilder>();
            _dosBuilder.Setup(b => b.FillCheckCapacitySummaryResult(It.IsAny <DosViewModel>(), It.IsAny <bool>(), It.IsAny <DosEndpoint?>()))
            .ReturnsAsync(_successfulDosResponse);
            _surgeryBuilder           = new Mock <ISurgeryBuilder>();
            _locationResultBuilder    = new Mock <ILocationResultBuilder>();
            _auditLogger              = new Mock <IAuditLogger>();
            _configuration            = new Mock <Configuration.IConfiguration>();
            _postCodeAllowedValidator = new Mock <IPostCodeAllowedValidator>();
            var referralResultBuilder = new ReferralResultBuilder(_postCodeAllowedValidator.Object);

            _recommendedServiceBuilder = new Mock <IRecommendedServiceBuilder>();
            _viewRouter        = new ViewRouter(_auditLogger.Object, new Mock <IUserZoomDataBuilder>().Object, new Mock <IJourneyViewModelEqualityComparer>().Object);
            _outcomeController = new OutcomeController(_outcomeViewModelBuilder.Object, _dosBuilder.Object,
                                                       _surgeryBuilder.Object, _locationResultBuilder.Object, _auditLogger.Object, _configuration.Object,
                                                       _postCodeAllowedValidator.Object, _viewRouter, referralResultBuilder, _recommendedServiceBuilder.Object);
        }