public GetCategoriesByVendorController(IMapper mapper, StationeryContext context, IQueryProcessor queryProcessor, ICommandDispatcher commandDispatcher) { _mapper = mapper; _context = context; _queryProcessor = queryProcessor; _commandDispatcher = commandDispatcher; }
public RequisitionController(RequisitionService reqService, InventoryService invService, DepartmentService deptService, StationeryContext dbcontext) { this.deptService = deptService; this.invService = invService; this.reqService = reqService; this.dbcontext = dbcontext; }
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; }
// 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; }
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; }
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;*/ }
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; }
public CompleteOrderCommandHandler(StationeryContext context) { _context = context; }
public HomeController(StationeryContext db) { }
public GetEmployeeQueryHandler(StationeryContext context) { _context = context; }
public UserService(StationeryContext stationeryContext) { _stationeryContext = stationeryContext; }
public UpdateUserCommandHandler(StationeryContext context) { _context = context; }
public ProductsQueryHandler(StationeryContext context) { _context = context; }
public DepartmentApiController(StationeryContext dbcontext, RequisitionService reqService) { this.dbcontext = dbcontext; this.reqService = reqService; }
public HomeController(ILogger <HomeController> logger, StationeryContext dbcontext) { _logger = logger; this.dbcontext = dbcontext; }
public FindProductQueryHandler(StationeryContext context) { _context = context; }
public RequestedOrderQueryHandler(StationeryContext context) { _context = context; }
public ValueObjectQueryHandler(StationeryContext context) { _context = context; }
public DisbursementService(StationeryContext dbcontext, DepartmentService deptService) { this.dbcontext = dbcontext; this.deptService = deptService; }
public SetOrderCommandHandler(StationeryContext context) { _context = context; }
public OrdersHistoryQueryHandler(StationeryContext context) { _context = context; }
public SetProductCommandHandler(StationeryContext context) { _context = context; }