public GetCategoriesByVendorController(IMapper mapper, StationeryContext context, IQueryProcessor queryProcessor, ICommandDispatcher commandDispatcher)
 {
     _mapper            = mapper;
     _context           = context;
     _queryProcessor    = queryProcessor;
     _commandDispatcher = commandDispatcher;
 }
Exemplo n.º 2
0
 public RequisitionController(RequisitionService reqService, InventoryService invService, DepartmentService deptService, StationeryContext dbcontext)
 {
     this.deptService = deptService;
     this.invService  = invService;
     this.reqService  = reqService;
     this.dbcontext   = dbcontext;
 }
Exemplo n.º 3
0
 public DisbursementService(StationeryContext dbcontext, DepartmentService deptService, RequisitionService reqService, InventoryService invService)
 {
     this.dbcontext   = dbcontext;
     this.deptService = deptService;
     this.reqSerivce  = reqService;
     this.invService  = invService;
 }
 public EndOrderController(IMapper mapper, StationeryContext context, IQueryProcessor queryProcessor, ICommandDispatcher commandDispatcher)
 {
     _mapper            = mapper;
     _context           = context;
     _queryProcessor    = queryProcessor;
     _commandDispatcher = commandDispatcher;
 }
Exemplo n.º 5
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, StationeryContext db)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }
            app.UseHttpsRedirection();
            app.UseStaticFiles();

            app.UseRouting();
            app.UseSession();
            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller=Department}/{action=viewUsers}");
            });
            db.Database.EnsureDeleted();
            db.Database.EnsureCreated();
            new DbSeeder(db);
        }
 public PersistEmployeeController(IMapper mapper, StationeryContext context, IQueryProcessor queryProcessor, ICommandDispatcher commandDispatcher)
 {
     _mapper            = mapper;
     _context           = context;
     _queryProcessor    = queryProcessor;
     _commandDispatcher = commandDispatcher;
 }
 public PurchaseOrderController(StationeryContext dbcontext, RequisitionService reqService, InventoryService invService, DepartmentService deptService, DisbursementService disService)
 {
     this.deptService = deptService;
     this.invService  = invService;
     this.reqService  = reqService;
     this.dbcontext   = dbcontext;
     this.disService  = disService;
 }
Exemplo n.º 8
0
 public DepartmentController(RequisitionService reqService, InventoryService invService, DepartmentService deptService, DisbursementService disService, NotificationService notiService, StationeryContext dbcontext)
 {
     this.deptService = deptService;
     this.invService  = invService;
     this.reqService  = reqService;
     this.dbcontext   = dbcontext;
     this.disService  = disService;
     this.notiService = notiService;
 }
Exemplo n.º 9
0
        public void IndexViewResultNotNull2()
        {
            StationeryContext sc         = new StationeryContext();
            HomeController    controller = new HomeController(sc);
            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.NotNull(result);
        }
 public StationeryStoreController(StationeryContext dbcontext, RetrievalService rservice, RequisitionService requisitionService, InventoryService invService, DepartmentService deptService, DisbursementService disbService, NotificationService notifService)
 {
     this.dbcontext          = dbcontext;
     this.rservice           = rservice;
     this.requisitionService = requisitionService;
     this.invService         = invService;
     this.deptService        = deptService;
     this.disbService        = disbService;
     this.notifService       = notifService;
 }
        /*        protected RequisitionService requisitionService;
         *     protected DisbursementService disbursementService;
         *     protected InventoryService inventoryService;*/

        public NotificationService(StationeryContext dbcontext,
                                   DepartmentService deptService

                                   /*RequisitionService requisitionService,
                                    * DisbursementService disbursementService,
                                    * InventoryService inventoryService*/)
        {
            this.dbcontext   = dbcontext;
            this.deptService = deptService;

            /* this.requisitionService = requisitionService;
             * this.disbursementService = disbursementService;
             * this.inventoryService = inventoryService;*/
        }
Exemplo n.º 12
0
        public void AddRequest()
        {
            // Arrange
            StationeryContext sc         = new StationeryContext();
            HomeController    controller = new HomeController(sc);

            UserProductRequest upr = new UserProductRequest();

            upr.ProductId     = 1;
            upr.UserId        = 1;
            upr.ProductAmount = 1;

            // Act
            ViewResult result = controller.AddRequest(upr) as ViewResult;

            // Assert
            Assert.IsType <ViewResult>(result);
        }
 public InventoryService(StationeryContext dbcontext, DepartmentService deptService, NotificationService notificationService)
 {
     this.dbcontext           = dbcontext;
     this.deptService         = deptService;
     this.notificationService = notificationService;
 }
 public GetWorkplaceQueryHandler(StationeryContext context)
 {
     _context = context;
 }
 public RetrievalService(StationeryContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Exemplo n.º 16
0
 public CompleteOrderCommandHandler(StationeryContext context)
 {
     _context = context;
 }
Exemplo n.º 17
0
 public HomeController(StationeryContext db)
 {
 }
 public GetEmployeeQueryHandler(StationeryContext context)
 {
     _context = context;
 }
Exemplo n.º 19
0
 public UserService(StationeryContext stationeryContext)
 {
     _stationeryContext = stationeryContext;
 }
 public UpdateUserCommandHandler(StationeryContext context)
 {
     _context = context;
 }
Exemplo n.º 21
0
 public ProductsQueryHandler(StationeryContext context)
 {
     _context = context;
 }
 public DepartmentApiController(StationeryContext dbcontext, RequisitionService reqService)
 {
     this.dbcontext  = dbcontext;
     this.reqService = reqService;
 }
Exemplo n.º 23
0
 public HomeController(ILogger <HomeController> logger, StationeryContext dbcontext)
 {
     _logger        = logger;
     this.dbcontext = dbcontext;
 }
Exemplo n.º 24
0
 public FindProductQueryHandler(StationeryContext context)
 {
     _context = context;
 }
 public RequestedOrderQueryHandler(StationeryContext context)
 {
     _context = context;
 }
 public ValueObjectQueryHandler(StationeryContext context)
 {
     _context = context;
 }
Exemplo n.º 27
0
 public DisbursementService(StationeryContext dbcontext, DepartmentService deptService)
 {
     this.dbcontext   = dbcontext;
     this.deptService = deptService;
 }
Exemplo n.º 28
0
 public SetOrderCommandHandler(StationeryContext context)
 {
     _context = context;
 }
 public OrdersHistoryQueryHandler(StationeryContext context)
 {
     _context = context;
 }
Exemplo n.º 30
0
 public SetProductCommandHandler(StationeryContext context)
 {
     _context = context;
 }