public ReportWorkflowCommandService(
     IReportsUnitOfWork unitOfWork,
     IWorkflowInstanceService workflowInstanceService,
     NumberControlProcessor numberControlProcessor,
     ILog log,
     IServiceAuthorizationPolicy authorizationPolicy,
     IServiceIdentityProvider identityProvider)
     : base(unitOfWork, log, authorizationPolicy, identityProvider)
 {
     _workflowInstanceService = CheckDependency(workflowInstanceService, "workflowInstanceService");
     _numberControlProcessor  = CheckDependency(numberControlProcessor, "numberControlProcessor");
 }
Esempio n. 2
0
        private void SetUpNumberControl()
        {
            var numberProvider = _factory.Create <INumberProvider>();

            _numberControlProcessor = new NumberControlProcessor(numberProvider.Object, _reportsUnitOfWork.Object);
        }
 public void SetUp()
 {
     _reportsUnitOfWork      = _factory.Create <IReportsUnitOfWork>();
     _numberProvider         = _factory.Create <INumberProvider>();
     _numberControlProcessor = new NumberControlProcessor(_numberProvider.Object, _reportsUnitOfWork.Object);
 }