public void SetUp() { _gridRunService = new Mock <IGridRunService>(); _xmlFileService = new Mock <IXmlFileService>(); _applicationService = new Mock <IApplicationService>(); _logger = new Mock <ILogger>(); _gridRunEngine = new GridRunEngine(_gridRunService.Object, _xmlFileService.Object, _applicationService.Object, _logger.Object); }
public SyncService( IFileSyncService fileSyncService, IOneStepService oneStepService, IGridRunEngine gridRunEngine) { _fileSyncService = fileSyncService; _oneStepService = oneStepService; _gridRunEngine = gridRunEngine; }
private void PerformIOC() { string test = ConfigurationManager.AppSettings["companyCode"]; IoCContainer.ResoloveDependencies(); _documentService = IoCContainer.Resolve <IDocumentService>(); _documentApprovalService = IoCContainer.Resolve <IAutoApprovalService>(); _subDocTypeService = IoCContainer.Resolve <ISubDocTypeService>(); _gridRunEngine = IoCContainer.Resolve <IGridRunEngine>(); _manCoService = IoCContainer.Resolve <IManCoService>(); _approvalEngine = IoCContainer.Resolve <IApprovalEngine>(); _gridRunService = IoCContainer.Resolve <IGridRunService>(); }
/// <summary> /// Initializes a new instance of the <see cref="Allocation" /> class. /// </summary> /// <param name="engine">The engine.</param> /// <param name="appInfo">The application information.</param> /// <param name="documentService">The document service.</param> /// <param name="documentApprovalService">The document approval service.</param> /// <param name="subDocTypeService">The sub document type service.</param> public Allocation( NexdoxEngine engine, ApplicationInfo appInfo, IDocumentService documentService, IAutoApprovalService documentApprovalService, ISubDocTypeService subDocTypeService, IGridRunEngine gridRunEngine, IManCoService manCoService, IApprovalEngine approvalEngine, IGridRunService gridRunService) { _engine = engine; _appInfo = appInfo; _documentService = documentService; _documentApprovalService = documentApprovalService; _subDocTypeService = subDocTypeService; _gridRunEngine = gridRunEngine; _manCoService = manCoService; _approvalEngine = approvalEngine; _gridRunService = gridRunService; }