public void InitTest() { base.InitDbContext(); _appraiserUserRepository = new AppraiserUserRepository(this.DbFactory); _orderRepository = new OrderRepository(this.DbFactory); _appraiserOrderDeliveryService = Substitute.For<IAppraiserOrderDeliveryService>(); _orderManager = new OrderManager(_orderRepository, Substitute.For<IClientUserRepository>(), Substitute.For<IReferenceManagement>(), Substitute.For<IAppraiserManagement>(), Substitute.For<IConfigurationHelper>(), Substitute.For<IAppraiserOrderRepository>(), Substitute.For<IChangeTrackingRepository>(), Substitute.For<IOrderHistoryManager>(), Substitute.For<IOrderDocumentsRepository>()); _taskManager = Substitute.For<ITaskManager>(); _orderAssignmentService = new OrderAssignmentService(_appraiserUserRepository, _orderManager, _taskManager, new DateTimeManager(Substitute.For<IReferenceManagement>()), _appraiserOrderDeliveryService, Substitute.For<IConfigurationHelper>(), Substitute.For<IAppraiserOrderRepository>()); }
public AssignmentAppraisersForOrder(IOrderAssignmentService orderAssignmentService, ICommitProvider commitProvider) { _orderAssignmentService = orderAssignmentService; _commitProvider = commitProvider; }