Esempio n. 1
0
		public CommunicationService(IOrderManager orderManager, ISecurityContext securityContext,
			IOrderHistoryManager orderHistoryManager, IOrderPeriodicalNotificationManager orderPeriodicalNotificationManager)
		{
			_orderManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderManager);
			_securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext);
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
			_orderPeriodicalNotificationManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderPeriodicalNotificationManager);
		}
Esempio n. 2
0
		public ConditionsService(IOrderManager orderManager, IReferenceRepository referenceRepository, IOrderPeriodicalNotificationManager notificationManager, ISecurityContext securityContext, IOrderHistoryManager orderHistoryManager)
		{
			_orderManager = orderManager;
			_referenceRepository = referenceRepository;
			_notificationManager = notificationManager;
			_securityContext = securityContext;
			_orderHistoryManager = orderHistoryManager;
		}
Esempio n. 3
0
		public OrderDocumentsService(IOrderDocumentsRepository orderDocumentsRepository, IReferenceManagement referenceManagement, ISecurityContext securityContext, IDocumentService documentService, IUsersManagement userManagement, IOrderManager orderManager, IOrderHistoryManager orderHistoryManager)
		{
			_orderDocumentsRepository = orderDocumentsRepository;
			_referenceManagement = referenceManagement;
			_securityContext = securityContext;
			_documentService = documentService;
			_userManagement = userManagement;
			_orderManager = orderManager;
			_orderHistoryManager = orderHistoryManager;
		}
Esempio n. 4
0
		public OrderDocumentsServiceTest()
		{
			_orderDocumentsRepository = Substitute.For<IOrderDocumentsRepository>();
			_referenceManagement = Substitute.For<IReferenceManagement>();
			_securityContext = Substitute.For<ISecurityContext>();
			_userManagement = Substitute.For<IUsersManagement>();
			_documentService = Substitute.For<IDocumentService>();
			_orderManager = Substitute.For<IOrderManager>();
			_orderHistoryManager = Substitute.For<IOrderHistoryManager>();
			_target = new OrderDocumentsService(_orderDocumentsRepository, _referenceManagement, _securityContext, _documentService, _userManagement, _orderManager, _orderHistoryManager);
		}
Esempio n. 5
0
		public void InitTest()
		{
			_orderRepository = Substitute.For<IOrderRepository>();
			_orderHistoryManager = Substitute.For<IOrderHistoryManager>();
			_orderDocumentsRepository = Substitute.For<IOrderDocumentsRepository>();
			_appraiserOrderRepository = Substitute.For<IAppraiserOrderRepository>();
			_securityContext = Substitute.For<ISecurityContext>();
			_referenceManagement = Substitute.For<IReferenceManagement>();
			_documentService = Substitute.For<IDocumentService>();
			_businessDaysCalc = Substitute.For<IBusinessDaysCalc>();
			_appraiserUserRepository = Substitute.For<IAppraiserUserRepository>();
			_configurationHelper = Substitute.For<IConfigurationHelper>();

			_referenceManagement.GetTestOrderData().Returns(new Dictionary<OrderField, string>() 
			{
				{OrderField.AppraisalForm, "1"},
				{OrderField.AppraisalTypeId, "1"},
				{OrderField.BorrowerFirstName, "Borrower"},
				{OrderField.BorrowerLastName, "Test"},
				{OrderField.ClientCompanyBrancheId, "1"},
				{OrderField.ClientCompanyId, "1"},
				{OrderField.ContactName, ""},
				{OrderField.ContactPhone, "111-111-1111"},
				{OrderField.ContactRoleId, "1"},
				{OrderField.CreatedByClientUserId, "1"},
				{OrderField.GFEAmount, "130"},
				{OrderField.LoanNumber, "test"},
				{OrderField.LoanPurposeTypeId, "5"},
				{OrderField.LoanTypeId, "1"},
				{OrderField.OccupancyTypeId, "1"},
				{OrderField.OrderPublicId, "TEST_ORDER"},
				{OrderField.PropertyCity, "Anytown"},
				{OrderField.PropertyCounty, "Anycounty"},
				{OrderField.PropertyState, "CA"},
				{OrderField.PropertyStreet, "111 Main St"},
				{OrderField.PropertyTypeId, "1"},
				{OrderField.PropertyZip, "95630"},
				{OrderField.PurchaseContractFileName, "AGREEMENT TO PURCHASE REAL ESTATE.pdf"},
				{OrderField.PurchasePrice, "500000"}	
			});

			_target = new TestOrderManager(
				_orderRepository,
				_orderHistoryManager,
				_appraiserOrderRepository,
				_securityContext,
				_orderDocumentsRepository,
				_referenceManagement,
				_documentService,
				_businessDaysCalc,
				_appraiserUserRepository,
				_configurationHelper
				);
		}
Esempio n. 6
0
		public AppraiserOrderDeliveryService(ITaskManager taskManager, IAppraiserOrderRepository appraiserOrderRepository,
			ICommitProvider commitProvider, IOrderManager orderManager, DateTimeManager dateTimeManager, IOrderHistoryManager orderHistoryManager,
			IAppraiserOrderSetPointsRepository appraiserOrderSetPointsRepository, IAppraiserOrderListItemRepository appraiserOrderListItemRepository,
			IOrderPeriodicalNotificationManager orderPeriodicalNotificationManager)
		{
			_taskManager = ValidationUtil.CheckOnNullAndThrowIfNull(taskManager);
			_appraiserOrderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserOrderRepository);
			_commitProvider = ValidationUtil.CheckOnNullAndThrowIfNull(commitProvider);
			_orderManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderManager);
			_dateTimeManager = ValidationUtil.CheckOnNullAndThrowIfNull(dateTimeManager);
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
			_appraiserOrderSetPointsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserOrderSetPointsRepository);
			_appraiserOrderListItemRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserOrderListItemRepository);
			_orderPeriodicalNotificationManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderPeriodicalNotificationManager);
		}
Esempio n. 7
0
		public OrderCreationWizardController(
			IOrderService orderService,
			IAppraisalFormsService appraisalFormsService,
			IClientCompaniesListService clientCompaniesListService,
			ICreditCardService creditCardService,
			IDocumentService documentService,
			ITaskManager taskManager,
			IOrderHistoryManager orderHistoryManager,
			IReferenceManagement referenceManager)
		{
			_orderService = orderService;
			_appraisalFormsService = appraisalFormsService;
			_clientCompaniesService = clientCompaniesListService;
			_creditCardService = creditCardService;
			_documentService = documentService;
			_taskManager = taskManager;
			_orderHistoryManager = orderHistoryManager;
			_referenceManager = referenceManager;
		}
Esempio n. 8
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);
		}
Esempio n. 9
0
		public OrderManager(IOrderRepository orderRepository,
												IClientUserRepository clientUserRepository,
												IReferenceManagement referenceManagement,
												IAppraiserManagement appraiserManagement,
												IConfigurationHelper configurationHelper,
												IAppraiserOrderRepository appraiserOrderRepository,
												IChangeTrackingRepository changeTrackingRepository,
												IOrderHistoryManager orderHistoryManager,
												IOrderDocumentsRepository orderDocumentsRepository
)
		{
			_orderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderRepository);
			_clientUserRepository = ValidationUtil.CheckOnNullAndThrowIfNull(clientUserRepository);
			_referenceManagement = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement);
			_appraiserManagement = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserManagement);
			_configurationHelper = ValidationUtil.CheckOnNullAndThrowIfNull(configurationHelper);
			_appraiserOrderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserOrderRepository);
			_addressManager = new AddressManager(_referenceManagement);
			_changeTrackingRepository = ValidationUtil.CheckOnNullAndThrowIfNull(changeTrackingRepository);
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
			_orderDocumentsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderDocumentsRepository);
		}
Esempio n. 10
0
		public TestOrderManager(
			IOrderRepository orderRepository,
			IOrderHistoryManager orderHistoryManager,
			IAppraiserOrderRepository appraiserOrderRepository,
			ISecurityContext securityContext,
			IOrderDocumentsRepository orderDocumentsRepository,
			IReferenceManagement referenceManagement,
			IDocumentService documentService,
			IBusinessDaysCalc businessDaysCalc,
			IAppraiserUserRepository appraiserUserRepository,
			IConfigurationHelper configurationHelper)
		{
			_orderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderRepository);
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
			_appraiserOrderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserOrderRepository);
			_securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext);
			_orderDocumentsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderDocumentsRepository);
			_referenceManagement = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement);
			_documentService = ValidationUtil.CheckOnNullAndThrowIfNull(documentService);
			_businessDaysCalc = ValidationUtil.CheckOnNullAndThrowIfNull(businessDaysCalc);
			_appraiserUserRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserUserRepository);
			_configurationHelper = ValidationUtil.CheckOnNullAndThrowIfNull(configurationHelper);
		}
Esempio n. 11
0
		public OrderHistoryNotesService(IOrderHistoryManager orderHistoryManager)
		{
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
		}
Esempio n. 12
0
		public DvsUserDashboardManager(IOrderHistoryManager orderHistoryManager, IDvsUserDashboardRepository dvsUserDashboardRepository)
		{
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
			_dvsUserDashboardRepository = ValidationUtil.CheckOnNullAndThrowIfNull(dvsUserDashboardRepository);
		}
Esempio n. 13
0
		public ImportantDatesService(IOrderHistoryManager orderHistoryManager)
		{
			_orderHistoryManager = orderHistoryManager;
		}