//private IHostingEnvironment hostingEnvironment; public PdfCreateAndLoadServiceTests() { var hostingEnvironment = new Mock <IHostingEnvironment>(); IHostingEnvironment hs = new HostingEnvironment(); //var str = hs.ContentRootPath; //hostingEnvironment.Setup(h => h.ContentRootPath).Returns(); pdfCreateAndLoadServiceTests = new PdfCreateAndLoadService(hostingEnvironment.Object); }
public ExchangeRateController(ICurrencyService currencyService, IAccountService accountService, IExchangeRateService exchangeRateService, IStringLocalizer <ExchangeRateController> localizer, IValidationService validationService, UserManager <User> userManager, IUserService userService, ISelectListService selectListService, ITransferService transferService, IHostingEnvironment hostingEnvironment, ApplicationContext context, ICompositeViewEngine _viewEngine, ICreatePDFandLoad createPdFandLoad) { this.currencyService = currencyService; this.accountService = accountService; this.exchangeRateService = exchangeRateService; this.localizer = localizer; this.validationService = validationService; this.userManager = userManager; this.userService = userService; this.selectListService = selectListService; this.transferService = transferService; this.context = context; this._viewEngine = _viewEngine; _hostingEnvironment = hostingEnvironment; this.createPdFandLoad = createPdFandLoad; }
public TransferController(ISelectListService selectListService, IUserService userService, ITransferService transferService, IAccountService accountService, IStringLocalizer <TransferController> localizer, IHomePagingService pagingService, IEmployeeService employeeService, ICompanyService companyService, IExchangeRateService exchangeRateService, IValidationService validationService, IDocumentFormatService documentFormatService, ITemplateService templateServiceService, ICreatePDFandLoad createPdFandLoad, ICurrencyService currencyService, IHostingEnvironment _hostingEnvironment) { this.selectListService = selectListService; this.userService = userService; this.transferService = transferService; this.accountService = accountService; this.localizer = localizer; this.pagingService = pagingService; this.employeeService = employeeService; this.companyService = companyService; this.exchangeRateService = exchangeRateService; this.validationService = validationService; this.documentFormatService = documentFormatService; this._templateServiceService = templateServiceService; this.createPdFandLoad = createPdFandLoad; this.currencyService = currencyService; this._hostingEnvironment = _hostingEnvironment; }