public FlowTemplatesController() { _connection = new SqlConnection(ConnectionString); _connection.Open(); _unitOfWork = new SqlUnitOfWork(_connection); _flowTemplateService = new FlowTemplateService(_unitOfWork); }
public TransporterPaymentRequestController(IBusinessProcessService _paramBusinessProcessService , IBusinessProcessStateService _paramBusinessProcessStateService , IApplicationSettingService _paramApplicationSettingService , ITransporterPaymentRequestService transporterPaymentRequestService , ITransportOrderService _paramTransportOrderService , IBidWinnerService bidWinnerService , IDispatchService dispatchService , IWorkflowStatusService workflowStatusService , IUserAccountService userAccountService , Services.Procurement.ITransporterService transporterService, ITransportOrderService transportOrderService, ITransportOrderDetailService transportOrderDetailService, ICommonService commodityService , IFlowTemplateService flowTemplateService) { _BusinessProcessService = _paramBusinessProcessService; _BusinessProcessStateService = _paramBusinessProcessStateService; _ApplicationSettingService = _paramApplicationSettingService; _transporterPaymentRequestService = transporterPaymentRequestService; _TransportOrderService = _paramTransportOrderService; _bidWinnerService = bidWinnerService; _dispatchService = dispatchService; _workflowStatusService = workflowStatusService; _userAccountService = userAccountService; _transporterService = transporterService; _transportOrderService = transportOrderService; _transportOrderDetailService = transportOrderDetailService; _commodityService = commodityService; _flowTemplateService = flowTemplateService; }
public FlowTemplateControllerTests() { Library.Configuration.AutoMapperConfig.Configure(); AutoMapperConfig.Configure(); _flowTemplateService = A.Fake <IFlowTemplateService>(); _sut = new FlowTemplatesController(_flowTemplateService); }
public ProcessTemplateController(IStateTemplateService StateTemplateServiceParam , IProcessTemplateService ProcessTemplateServiceParam ,IFlowTemplateService FlowTemplateServiceParam ) { this._StateTemplateService = StateTemplateServiceParam; this._ProcessTemplateService = ProcessTemplateServiceParam; this._FlowTemplateService = FlowTemplateServiceParam; }
public ProcessTemplateController(IStateTemplateService StateTemplateServiceParam , IProcessTemplateService ProcessTemplateServiceParam , IFlowTemplateService FlowTemplateServiceParam ) { this._StateTemplateService = StateTemplateServiceParam; this._ProcessTemplateService = ProcessTemplateServiceParam; this._FlowTemplateService = FlowTemplateServiceParam; }
public FlowTemplateController(IFlowTemplateService FlowTemplateServiceParam , IStateTemplateService StateTemplateServiceParam ) { this._FlowTemplateService = FlowTemplateServiceParam; this._StateTemplateService = StateTemplateServiceParam; this._StateTemplateService = StateTemplateServiceParam; }
public FlowTemplateServiceTests() { AutoMapperConfig.Configure(); var templateRepo = A.Fake <IRepository <FlowTemplate> >(); _flowTemplates = new List <FlowTemplate>(); _flowTemplateSteps = new List <IStep>(); A.CallTo(() => templateRepo.Get()).Returns(_flowTemplates); A.CallTo(() => templateRepo.Add(A <FlowTemplate> ._)).Invokes((FlowTemplate o) => _flowTemplates.Add(o)); _unitofwork = A.Fake <IUnitOfWork>(); A.CallTo(() => _unitofwork.FlowTemplates).Returns(templateRepo); _flowTemplateService = new FlowTemplateService(_unitofwork); }
public FlowTemplatesController(IFlowTemplateService flowTemplateService) { _templates = flowTemplateService; }