public void SetUp() { EMSWebsiteMapper.Initialize(); BLLMapper.Initialize(); _logger = Substitute.For <ILogger>(); _uow = Substitute.For <IUnitOfWork>(); }
public void SetUp() { _logger = Substitute.For <ILogger>(); _uow = Substitute.For <IUnitOfWork>(); _repository = _uow.GetGenericRepository <USER>(); _bll = new UserBLL(_uow, _logger); BLLMapper.Initialize(); }
public void SetUp() { BLLMapper.Initialize(); _logger = Substitute.For <ILogger>(); _uow = Substitute.For <IUnitOfWork>(); _repository = _uow.GetGenericRepository <EMAIL_TEMPLATE>(); _workflowStateRepository = _uow.GetGenericRepository <WORKFLOW_STATE>(); _bll = new EmailTemplateBLL(_uow, _logger); }
public void SetUp() { _logger = Substitute.For <ILogger>(); _uow = Substitute.For <IUnitOfWork>(); _repository = _uow.GetGenericRepository <LACK2>(); _bll = new LACK2BLL(_uow, _logger); _uow.GetGenericRepository <LACK2>().ReturnsForAnyArgs(_repository); BLLMapper.Initialize(); }
public void SetUp() { _logger = Substitute.For <ILogger>(); _uow = Substitute.For <IUnitOfWork>(); _repository = _uow.GetGenericRepository <PRODUCTION>(); _productionBll = new ProductionBLL(_logger, _uow); BLLMapper.Initialize(); }
public SchedulerEmailService() { logger = new NLogLogger(); uow = new SqlUnitOfWork(logger); _repositoryQuotaMonitoringDetail = uow.GetGenericRepository <QUOTA_MONITORING_DETAIL>(); _pbck1BLL = new PBCK1BLL(uow, logger); _messageService = new MessageService(logger); BLLMapper.InitializePBCK1(); BLLMapper.Initialize(); }
private void CreateCk5XmlCancel(CK5 ck5) { //create xml file status 03 var ck5Writer = new XmlCK5DataWriter(); BLLMapper.InitializeCK5(); BLLMapper.Initialize(); var outboundPath = ConfigurationManager.AppSettings["XmlOutboundPath"]; var date = DateTime.Now.ToString("yyyyMMdd"); var time = DateTime.Now.ToString("hhmmss"); var fileName = string.Format("CK5CAN_{0}-{1}-{2}.xml", ck5.SUBMISSION_NUMBER, date, time); var Ck5XmlDto = new CK5BLL(_xmlMapper.uow, new NullLogger()).GetCk5ForXmlById(ck5.CK5_ID); Ck5XmlDto.Ck5PathXml = Path.Combine(outboundPath, fileName); ck5Writer.CreateCK5Xml(Ck5XmlDto, "03"); }
public void SetUp() { BLLMapper.Initialize(); }
private static void Bootstrap() { //initialize mappers EMSWebsiteMapper.Initialize(); BLLMapper.Initialize(); // 1. Create a new Simple Injector container var container = new Container(); // register unit of work / context by request // http://simpleinjector.codeplex.com/wikipage?title=ObjectLifestyleManagement#PerThread var webLifestyle = new WebRequestLifestyle(); container.Register <IUnitOfWork, SqlUnitOfWork>(webLifestyle); container.Register <ILogger, NLogLogger>(); container.Register <ICompanyBLL, CompanyBLL>(); container.Register <IWorkflowBLL, WorkflowBLL>(); container.Register <IUserBLL, UserBLL>(); container.Register <IFormsAuthenticationService, FormsAuthenticationService>(); container.Register <IPageBLL, PageBLL>(); container.Register <IPBCK1BLL, PBCK1BLL>(); container.Register <ICK4CBLL, CK4CBLL>(); container.Register <IZaidmExPOAMapBLL, ZaidmExPOAMapBLL>(); container.Register <IVirtualMappingPlantBLL, VirtualMappingPlantBLL>(); container.Register <IMasterDataBLL, MasterDataBLL>(); container.Register <IZaidmExNPPBKCBLL, ZaidmExNPPBKCBLL>(); container.Register <IPlantBLL, PlantBLL>(); container.Register <IZaidmExGoodTypeBLL, ZaidmExGoodTypeBLL>(); container.Register <IBrandRegistrationBLL, BrandRegistrationBLL>(); container.Register <ICK5BLL, CK5BLL>(); container.Register <IZaidmExProdTypeBLL, ZaidmExProdTypeBLL>(); container.Register <IMonthBLL, MonthBLL>(); container.Register <IDocumentSequenceNumberBLL, DocumentSequenceNumberBLL>(); container.Register <IHeaderFooterBLL, HeaderFooterBLL>(); container.Register <IExGroupTypeBLL, ExGroupTypeBLL>(); container.Register <IZaidmExKPPBCBLL, ZaidmExKPPBCBLL>(); container.Register <IChangesHistoryBLL, ChangesHistoryBLL>(); container.Register <IMaterialBLL, MaterialBLL>(); container.Register <IWorkflowHistoryBLL, WorkflowHistoryBLL>(); container.Register <IUnitOfMeasurementBLL, UnitOfMeasurementBLL>(); container.Register <IPOASKBLL, POASKBLL>(); container.Register <IPOABLL, POABLL>(); container.Register <IWorkflowSettingBLL, WorkflowSettingBLL>(); container.Register <IEmailTemplateBLL, EmailTemplateBLL>(); container.Register <IPbck1DecreeDocBLL, Pbck1DecreeDocBLL>(); container.Register <IPbck1ProdPlanBLL, Pbck1ProdPlanBLL>(); container.Register <ILACK1BLL, LACK1BLL>(); container.Register <ILACK2BLL, LACK2BLL>(); container.Register <IPrintHistoryBLL, PrintHistoryBLL>(); container.Register <IUserAuthorizationBLL, UserAuthorizationBLL>(); container.Register <IPOAMapBLL, POAMapBLL>(); container.Register <ILFA1BLL, LFA1BLL>(); container.Register <IT001KBLL, T001KBLL>(); container.Register <IUserPlantMapBLL, UserPlantMapBLL>(); container.Register <ICountryBLL, CountryBLL>(); container.Register <ISupplierPortBLL, SupplierPortBLL>(); container.Register <IPBCK7And3BLL, PBCK7AndPBCK3BLL>(); container.Register <IBACK1BLL, BACK1BLL>(); container.Register <IProductionBLL, ProductionBLL>(); container.Register <IPBCK4BLL, PBCK4BLL>(); container.Register <ICK1BLL, CK1BLL>(); container.Register <IWasteBLL, WasteBLL>(); container.Register <IBlockStockBLL, BlockStockBLL>(); container.Register <IWasteRoleBLL, WasteRoleBLL>(); container.Register <IWasteStockBLL, WasteStockBLL>(); container.Register <INlogBLL, NlogBLL>(); container.Register <IXmlFileLogBLL, XmlFileLogBLL>(); container.Register <IPoaDelegationBLL, PoaDelegationBLL>(); container.Register <IReversalBLL, ReversalBLL>(); container.Register <ISchedulerSettingBLL, SchedulerSettingBLL>(); container.Register <IMonthClosingBLL, MonthClosingBLL>(); container.Register <IMonthClosingDocBLL, MonthClosingDocBLL>(); container.Register <IMasterDataApprovalSettingBLL, MasterDataApprovalSettingBLL>(); container.Register <IMasterDataAprovalBLL, MasterDataApprovalBLL>(); container.Register <ILACK10BLL, LACK10BLL>(); // 3. Optionally verify the container's configuration. container.Verify(); // 4. Store the container for use by Page classes. _container = container; }