public SubmitJobsController(IManCoService manCoService, IUserService userService, ISubmitJobsService submitJobsService, IDocTypeService docTypeService, IJobService jobService, ILogger logger, IAppEnvironmentService appEnvironmentService) : base(logger, appEnvironmentService, userService) { this.manCoService = manCoService; this.userService = userService; this.submitJobsService = submitJobsService; this.docTypeService = docTypeService; this.jobService = jobService; }
private void PerformIOC() { IoCContainer.ResoloveDependencies(); _conFileService = IoCContainer.Resolve <IConFileService>(); _zipFileService = IoCContainer.Resolve <IZipFileService>(); _xmlFileService = IoCContainer.Resolve <IXmlFileService>(); _docTypeService = IoCContainer.Resolve <IDocTypeService>(); _manCoService = IoCContainer.Resolve <IManCoService>(); }
public DocTypeController(IDocTypeService docTypeService, ILocalizationService localizationService, IOwnerService ownerService, IOwnerLevelService ownerLevelService, IDocCategoryService docCategoryService, IUserLevelService userLevelService) { _docTypeService = docTypeService; _localizationService = localizationService; _ownerService = ownerService; _ownerLevelService = ownerLevelService; _docCategoryService = docCategoryService; _userLevelService = userLevelService; UserID = SILAuthorization.GetUserID(); }
public DocTypesController( IDocTypeService docTypeService, IUserService userService, IAppEnvironmentService appEnvironmentService, ILogger logger) : base(logger, appEnvironmentService, userService) { this.docTypeService = docTypeService; this.userService = userService; this.docTypeService = docTypeService; }
public SearchController( IDocTypeService docTypeService, ISubDocTypeService subDocTypeService, IManCoService manCoService, IUserService userService, ILogger logger) : base(logger) { _docTypeService = docTypeService; _subDocTypeService = subDocTypeService; _manCoService = manCoService; _userService = userService; }
public DocTypeServiceTest() { // Arrange var repository = new Mock <IDocTypeRepo>(); foreach (var docType in TestData.docTypes) { repository.Setup(mock => mock.GetAllExceptId(docType.Id)).Returns( TestData.docTypes.Where(v => v.Id != docType.Id)); } _service = new DocTypeService(repository.Object); }
public DocDestroyPolicyController(IDocDestroyPolicyService destroyPolicyService, IOwnerProperIdentityService ownerProperIdentityRepository, IDocCategoryService docCategoryService, IDocTypeService docTypeService, IDocPropertyService docPropertyService, ILocalizationService localizationService) { _destroyPolicyService = destroyPolicyService; _ownerProperIdentityService = ownerProperIdentityRepository; _docCategoryService = docCategoryService; _docTypeService = docTypeService; _docPropertyService = docPropertyService; _localizationService = localizationService; UserID = SILAuthorization.GetUserID(); }
public OwnerProperIdentityController(IOwnerProperIdentityService ownerProperIdentityRepository, IOwnerLevelService ownerLevelServiceRepository, IOwnerService ownerServiceRepository, IDocCategoryService docCategoryService, IDocTypeService docTypeService, IDocPropertyService docPropertyService, ILocalizationService localizationService) { this._ownerProperIdentityService = ownerProperIdentityRepository; this._ownerLevelService = ownerLevelServiceRepository; this._ownerService = ownerServiceRepository; this._docCategoryService = docCategoryService; this._docTypeService = docTypeService; this._docPropertyService = docPropertyService; this._localizationService = localizationService; UserID = SILAuthorization.GetUserID(); }
public AutoApprovalController( IAutoApprovalService autoApprovalService, IDocTypeService docTypeService, ISubDocTypeService subDocTypeService, IManCoService manCoService, IUserService userService, ILogger logger) : base(logger) { this._autoApprovalService = autoApprovalService; this._docTypeService = docTypeService; this._subDocTypeService = subDocTypeService; this._manCoService = manCoService; this._userService = userService; }
public OtfController( IAppManCoEmailService appManCoEmailService, IApplicationService applicationService, IManCoService manCoService, IDocTypeService docTypeService, IUserService userService, ILogger logger) : base(logger) { this._appManCoEmailService = appManCoEmailService; this._applicationService = applicationService; this._manCoService = manCoService; this._docTypeService = docTypeService; this._userService = userService; }
/// <summary> /// Default Constructor. /// </summary> /// <param name="engine">The nexdox engine containing all the streams.</param> /// <param name="appInfo">Application Info created by NexdoxLaunch and passed to the program on declaration.</param> public Allocation( NexdoxEngine engine, ApplicationInfo appInfo, IConFileService conFileService, IXmlFileService xmlFileService, IZipFileService zipFileService, IDocTypeService docTypeService, IManCoService manCoService) { this._engine = engine; this._appInfo = appInfo; _conFileService = conFileService; _xmlFileService = xmlFileService; _zipFileService = zipFileService; _docTypeService = docTypeService; _manCoService = manCoService; }
public DataLevelPermissionController(IDataLevelPermissionService dataLevelPermissionService, IOwnerLevelPermissionService ownerLevelPermissionService, IOwnerService ownerService, IOwnerProperIdentityService ownerProperIdentityRepository, IDocCategoryService docCategoryService, IDocTypeService docTypeService, IDocPropertyService docPropertyService, IUserService userService, ILocalizationService localizationService) { _dataLevelPermissionService = dataLevelPermissionService; _OwnerLevelPermissionService = ownerLevelPermissionService; _ownerService = ownerService; _userService = userService; _ownerProperIdentityService = ownerProperIdentityRepository; _docCategoryService = docCategoryService; _docTypeService = docTypeService; _docPropertyService = docPropertyService; _localizationService = localizationService; UserID = SILAuthorization.GetUserID(); }
public DocTypesController(IDocTypeService docTypeService) { _service = docTypeService; }
public void SaveToDatabase(IXmlFileService xmlFileService, IZipFileService zipFileService, IConFileService conFileService, IDocTypeService docTypeService, IManCoService manCoService, ApplicationInfo appInfo) { try { NexdoxMessaging.SendMessage(" Adding Data to SQL Database", true, this); foreach (ZipPackage zp in Statics.zipPackage) { switch (Path.GetExtension(zp.FileName).ToLower()) { case ".xml": DocType docType = docTypeService.GetDocType(zp.DocumentType); if (docType == null) { throw new Exception(string.Format("Document type {0} not found in unity database", zp.DocumentType)); } ManCo manCo = manCoService.GetManCo(zp.ManCoID); if (manCo == null) { throw new Exception(string.Format("Man Co {0} not found in unity database", zp.ManCoID)); } xmlFileService.CreateXmlFile( Statics.zipPackage.DocumentSetID.ToString(), zp.FileName, zp.ParentZipFileName, zp.Offshore, docType.Id, manCo.Id, 0, string.Empty, zp.FileName, DateTime.Now, appInfo.NexdoxGlobalRunID.ToString(), File.GetLastWriteTime(appInfo.InputPath)); break; case ".zip": if (zp.IsBigZip) { zipFileService.CreateBigZipFile(Statics.zipPackage.DocumentSetID.ToString(), zp.FileName, File.GetLastWriteTime(appInfo.InputPath)); } else { zipFileService.CreateLittleZipFile(Statics.zipPackage.DocumentSetID.ToString(), zp.FileName, zp.ParentZipFileName, File.GetLastWriteTime(appInfo.InputPath)); } break; case ".con": conFileService.CreateConFile(Statics.zipPackage.DocumentSetID.ToString(), zp.FileName, zp.ParentZipFileName, File.GetLastWriteTime(appInfo.InputPath)); break; } /*SqlCommand sqlComm = new SqlCommand("sp_InsertInputFile", sqlConn); * sqlComm.CommandType = CommandType.StoredProcedure; * * SqlParameter InputFileName = sqlComm.Parameters.Add("@INPUTFILENAME", SqlDbType.VarChar); * InputFileName.Direction = ParameterDirection.Input; * InputFileName.Value = zp.FileName; * * SqlParameter DocType = sqlComm.Parameters.Add("@DOCTYPE", SqlDbType.VarChar); * DocType.Direction = ParameterDirection.Input; * DocType.Value = zp.DocumentType; * * SqlParameter ParentDocFileName = sqlComm.Parameters.Add("@PARENTDOCFILENAME", SqlDbType.VarChar); * ParentDocFileName.Direction = ParameterDirection.Input; * ParentDocFileName.Value = zp.ParentZipFileName; * * SqlParameter BigZip = sqlComm.Parameters.Add("@BIGZIP", SqlDbType.Bit); * BigZip.Direction = ParameterDirection.Input; * BigZip.Value = zp.IsBigZip; * * SqlParameter LittleZip = sqlComm.Parameters.Add("@LITTLEZIP", SqlDbType.Bit); * LittleZip.Direction = ParameterDirection.Input; * LittleZip.Value = zp.IsLittleZip; * * SqlParameter DocumentSetID = sqlComm.Parameters.Add("@DOCUMENTSET_ID", SqlDbType.UniqueIdentifier); * DocumentSetID.Direction = ParameterDirection.Input; * DocumentSetID.Value = Statics.zipPackage.DocumentSetID; * * SqlParameter OffShore = sqlComm.Parameters.Add("@OFFSHORE", SqlDbType.Bit); * OffShore.Direction = ParameterDirection.Input; * OffShore.Value = zp.Offshore; * * SqlParameter ManCo = sqlComm.Parameters.Add("@MANCO", SqlDbType.VarChar); * ManCo.Direction = ParameterDirection.Input; * ManCo.Value = zp.ManCoID.ToString(); * * SqlParameter Domicile = sqlComm.Parameters.Add("@DOMICILE", SqlDbType.VarChar); * Domicile.Direction = ParameterDirection.Input; * Domicile.Value = zp.Domicile; * * SqlParameter StatusID = sqlComm.Parameters.Add("@STATUS_ID", SqlDbType.Int); * StatusID.Direction = ParameterDirection.Input; * StatusID.Value = zp.StatusID; * * SqlParameter InputDateCreation = sqlComm.Parameters.Add("@INPUTCREATIONDATE", SqlDbType.DateTime); * InputDateCreation.Direction = ParameterDirection.Input; * InputDateCreation.Value = zp.InputCreationDate; * * SqlDataReader myReader = sqlComm.ExecuteReader(); * myReader.Close();*/ } } catch (Exception e) { throw NexdoxMessaging.Exception(e.Message, this); } }
public void SetUp() { _docTypeRepository = new Mock <IDocTypeRepository>(); _docTypeService = new DocTypeService(_docTypeRepository.Object); }
public void SetUp() { this.docTypeRepostory = new Mock <IDocTypeRepostory>(); this.docTypeService = new DocTypeService(docTypeRepostory.Object); }
public SubDocTypeController(ISubDocTypeService subDocTypeService, IDocTypeService docTypeService, ILogger logger) : base(logger) { _subDocTypeService = subDocTypeService; _docTypeService = docTypeService; }
public DocTypeController(IDocTypeService docTypeService, ILogger logger) : base(logger) { _docTypeService = docTypeService; }