public LedgerAccountsController(ECERPDbContext dbContext,
                                 SignInManager <ApplicationUser> signInManager,
                                 UserManager <ApplicationUser> userManager,
                                 ILedgerAccountService ledgerAccountService) : base(dbContext, signInManager, userManager)
 {
     _ledgerAccountService = ledgerAccountService;
 }
Ejemplo n.º 2
0
 public ProductCategoriesController(ECERPDbContext dbContext,
                                    SignInManager <ApplicationUser> signInManager,
                                    UserManager <ApplicationUser> userManager,
                                    IProductCategoryService productCategoryService) : base(dbContext, signInManager, userManager)
 {
     _productCategoryService = productCategoryService;
 }
Ejemplo n.º 3
0
 public CitiesController(ECERPDbContext dbContext,
                         SignInManager <ApplicationUser> signInManager,
                         UserManager <ApplicationUser> userManager,
                         ICityService citiesService) : base(dbContext, signInManager, userManager)
 {
     _citiesService = citiesService;
 }
Ejemplo n.º 4
0
 public CompaniesController(ECERPDbContext dbContext,
                            SignInManager <ApplicationUser> signInManager,
                            UserManager <ApplicationUser> userManager,
                            ICompanyService companyService) : base(dbContext, signInManager, userManager)
 {
     _companyService = companyService;
 }
 public ChartOfAccountsController(ECERPDbContext dbContext,
                                  SignInManager <ApplicationUser> signInManager,
                                  UserManager <ApplicationUser> userManager,
                                  IChartOfAccountsService chartOfAccountsService) : base(dbContext, signInManager, userManager)
 {
     _chartOfAccountsService = chartOfAccountsService;
 }
Ejemplo n.º 6
0
 public BaseController(ECERPDbContext dbContext,
                       SignInManager <ApplicationUser> signInManager,
                       UserManager <ApplicationUser> userManager)
 {
     // Dependency Injection
     _dbContext     = dbContext;
     _signInManager = signInManager;
     _userManager   = userManager;
 }
 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;
 }
Ejemplo n.º 8
0
        protected PersistenceTest()
        {
            var services = new ServiceCollection()
                           .AddEntityFrameworkInMemoryDatabase()
                           .AddDbContext <ECERPDbContext>(options => options.UseInMemoryDatabase("Scratch"));

            services.AddIdentity <ApplicationUser, IdentityRole>()
            .AddEntityFrameworkStores <ECERPDbContext>();
            var serviceProvider = services.BuildServiceProvider();

            _dbContext  = serviceProvider.GetRequiredService <ECERPDbContext>();
            _repository = new EntityFrameworkRepository <ECERPDbContext>(_dbContext);
        }
Ejemplo n.º 9
0
 public SuppliersController(ECERPDbContext dbContext,
                            SignInManager <ApplicationUser> signInManager,
                            UserManager <ApplicationUser> userManager,
                            ICityService cityService,
                            ICompanyService companyService,
                            ISupplierSubscriptionService supplierSubscriptionService,
                            ISupplierService supplierService) : base(dbContext, signInManager, userManager)
 {
     _cityService    = cityService;
     _companyService = companyService;
     _supplierSubscriptionService = supplierSubscriptionService;
     _supplierService             = supplierService;
 }
Ejemplo n.º 10
0
 public DbSeeder(ECERPDbContext dbContext,
                 RoleManager <IdentityRole> roleManager,
                 UserManager <ApplicationUser> userManager,
                 ISupplierService suppliersService,
                 ICityService citiesService,
                 ICompanyService companyService,
                 IProductService productService,
                 IProductCategoryService productCategoryService,
                 OpenIddictApplicationManager <OpenIddictApplication> applicationManager,
                 IConfiguration configuration)
 {
     _dbContext              = dbContext;
     _roleManager            = roleManager;
     _userManager            = userManager;
     _suppliersService       = suppliersService;
     _citiesService          = citiesService;
     _companyService         = companyService;
     _productService         = productService;
     _productCategoryService = productCategoryService;
     _applicationManager     = applicationManager;
     _configuration          = configuration;
 }