public ChartOfAccountsServiceTests() { _mockRepo = new Mock <IRepository>(); _mockRepo.Setup(x => x.GetById(It.IsAny <object>(), It.IsAny <Expression <Func <ChartOfAccounts, object> >[]>())) .Returns(this.GetTestChartOfAccounts(1)); _chartOfAccountsService = new ChartOfAccountsService(_mockRepo.Object); }
public ChartOfAccountsController(ECERPDbContext dbContext, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IChartOfAccountsService chartOfAccountsService) : base(dbContext, signInManager, userManager) { _chartOfAccountsService = chartOfAccountsService; }
public LedgerTransactionsController(ECERPDbContext dbContext, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ILedgerTransactionService transactionService, IChartOfAccountsService chartOfAccountsService, ILedgerAccountService ledgerAccountService) : base(dbContext, signInManager, userManager) { _ledgerTransactionService = transactionService; _chartOfAccountsService = chartOfAccountsService; _ledgerAccountService = ledgerAccountService; }