示例#1
0
		public OrderFulfillmentServiceTest()
		{
			_appraiserOrderRepository = Substitute.For<IAppraiserOrderRepository>();
			_clientDashboardService = Substitute.For<IClientDashboardService>();
			_clientManager = Substitute.For<IClientUserManager>();
			_orderRepository = Substitute.For<IOrderRepository>();
			_formsService = Substitute.For<IAppraisalFormsService>();
			_securityContext = Substitute.For<ISecurityContext>();
			_refManager = Substitute.For<IReferenceManagement>();
			_orderManager = Substitute.For<IOrderManager>();
			_changeTrackingRepository = Substitute.For<IChangeTrackingRepository>();
			_userManager = Substitute.For<IUsersManagement>();
			_orderHistoryManager = Substitute.For<IOrderHistoryManager>();
			_avmRequestsService = Substitute.For<IAvmRequestsService>();
			_taskManager = Substitute.For<ITaskManager>();
			_orderPeriodicalNotificationManager = Substitute.For<IOrderPeriodicalNotificationManager>();
			_target = new OrderFulfillmentService(_orderManager, _appraiserOrderRepository, _clientDashboardService, _clientManager,
				_orderRepository, _formsService, _securityContext, _refManager, _changeTrackingRepository, _userManager, _orderHistoryManager,
				_avmRequestsService, _taskManager, _orderPeriodicalNotificationManager);
		}
示例#2
0
文件: OrderService.cs 项目: evkap/DVS
		public OrderService(IOrderRepository orderRepository,
			IReferenceManagement referenceManagement,
			IGeocodingDataService geocodingDataService, ITaskManager taskManager, IOrderManager orderManager,
			IAppraisalFormsService appFormsService, IClientDashboardService dashboarService, IConfigurationHelper configurationHelper,
			ICryptographicProvider cryptographicProvider, IDocumentService documentService, IReportManager reportManager, ISecurityContext securityContext,
			IOrderDocumentsRepository orderDocumentsRepository)
		{
			_orderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderRepository);
			_referenceManager = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement);
			_geocodingDataService = ValidationUtil.CheckOnNullAndThrowIfNull(geocodingDataService);
			_taskManager = ValidationUtil.CheckOnNullAndThrowIfNull(taskManager);
			_orderManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderManager);
			_appFormsService = ValidationUtil.CheckOnNullAndThrowIfNull(appFormsService);
			_dashboarService = ValidationUtil.CheckOnNullAndThrowIfNull(dashboarService);
			_configurationHelper = ValidationUtil.CheckOnNullAndThrowIfNull(configurationHelper);
			_cryptographicProvider = ValidationUtil.CheckOnNullAndThrowIfNull(cryptographicProvider);
			_documentService = ValidationUtil.CheckOnNullAndThrowIfNull(documentService);
			_reportManager = ValidationUtil.CheckOnNullAndThrowIfNull(reportManager);
			_securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext);
			_orderDocumentsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderDocumentsRepository);

			_addressManager = new AddressManager(_referenceManager);
			_dateTimeManager = new DateTimeManager(_referenceManager);
		}
示例#3
0
		public ActiveOrdersController(IControllerPluginFactory controllerPluginFactory, IClientDashboardService dashboardService)
			: base(controllerPluginFactory)
		{
			_dashboardService = dashboardService;
		}
示例#4
0
		public ClientOrderAccessSecurity(ISecurityContext securityContext, IClientDashboardService clientDashboardService)
		{
			_securityContext = securityContext;
			_clientDashboardService = clientDashboardService;
		}
示例#5
0
		public void SetUp()
		{
			_userManager = Substitute.For<IClientUserManager>();
			_target = new ClientDashboardService(new FakeClientDashboardManager(), _userManager, Substitute.For<IReferenceManagement>(), Substitute.For<IBusinessDaysCalc>());
		}