public CreateProductCommand(Product product, IProductDataProxy productDataProxy, IInventoryItemService inventoryService, ITransactionContext transactionContext) { CurrentProduct = product; _productDataProxy = productDataProxy; _inventoryService = inventoryService; _transactionContext = transactionContext; }
public CharacterService(ApplicationDbContext context, IInventoryItemService inventoryItemService, IItemService itemService, IQuestService questService) { this.context = context; this.inventoryItemService = inventoryItemService; this.itemService = itemService; this.questService = questService; }
public CharacterServiceTests() { var services = new ServiceCollection(); services.AddDbContext <ApplicationDbContext>(options => options.UseInMemoryDatabase(Guid.NewGuid().ToString()).UseLazyLoadingProxies()); services.AddScoped <ICharacterService, CharacterService>(); services.AddScoped <IInventoryItemService, InventoryItemService>(); services.AddScoped <IInventoryService, InventoryService>(); services.AddScoped <IItemService, ItemService>(); services.AddScoped <ILocationService, LocationService>(); services.AddScoped <IQuestService, QuestService>(); services.AddScoped <IEnemyService, EnemyService>(); services.AddScoped <IStatsService, StatsService>(); this.provider = services.BuildServiceProvider(); this.context = provider.GetService <ApplicationDbContext>(); this.characterService = provider.GetService <ICharacterService>(); this.inventoryItemService = provider.GetService <IInventoryItemService>(); this.inventoryService = provider.GetService <IInventoryService>(); this.itemService = provider.GetService <IItemService>(); this.locationService = provider.GetService <ILocationService>(); this.questService = provider.GetService <IQuestService>(); this.enemyService = provider.GetService <IEnemyService>(); this.statsService = provider.GetService <IStatsService>(); }
public OrderItemsController(IOrderItemService service, ICategoryService categoryService, IProductService productService, IInventoryItemService inventoryService) : base(service) { _categoryService = categoryService; _productService = productService; _inventoryService = inventoryService; }
public RemovalController(UserManager <Employee> userManager, IRemovalService removalService, IInventoryItemService inventoryItemService, IWarehouseService WarehouseService) { _userManager = userManager; this.removalService = removalService; this.inventoryItemService = inventoryItemService; this.WarehouseService = WarehouseService; }
public DeliveryController(UserManager <Employee> userManager, IDeliveryService deliveryService, IInventoryItemService inventoryItemService, IWarehouseService WarehouseService) { _userManager = userManager; this.deliveryService = deliveryService; this.inventoryItemService = inventoryItemService; this.WarehouseService = WarehouseService; }
public DeleteProductCommand(long productID, IProductDataProxy productDataProxy, IInventoryItemService inventoryService, IOrderService orderService, ITransactionContext transactionContext) { _productID = productID; _productDataProxy = productDataProxy; _inventoryService = inventoryService; _orderService = orderService; _transactionContext = transactionContext; }
public DeleteProductCommand(long productID, IProductDataProxy productDataProxy, IInventoryItemService inventoryService, IOrderService orderService, ITransactionContext transactionContext) { _productID = productID; _productDataProxy = productDataProxy; _inventoryService = inventoryService; _orderService = orderService; _transactionContext = transactionContext; }
public AccountServiceTests() { var services = new ServiceCollection(); services.AddDbContext <ApplicationDbContext>(options => options.UseInMemoryDatabase(Guid.NewGuid().ToString()).UseLazyLoadingProxies()); services.AddIdentity <Player, IdentityRole>(options => { //for now options.SignIn.RequireConfirmedEmail = false; options.Password.RequiredLength = UserConstants.PasswordMinLength; options.Password.RequireNonAlphanumeric = false; options.Password.RequireLowercase = false; options.Password.RequireUppercase = false; options.Password.RequireDigit = false; options.Lockout.MaxFailedAccessAttempts = 3; //Lockout time-а нарочно е малко ;) options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromSeconds(10); }) //.AddDefaultUI() .AddDefaultTokenProviders() .AddEntityFrameworkStores <ApplicationDbContext>(); services.AddScoped <SignInManager <Player>, SignInManager <Player> >(); services.AddScoped <RoleManager <IdentityRole>, RoleManager <IdentityRole> >(); services.AddScoped <IAccountService, AccountService>(); services.AddScoped <ICharacterService, CharacterService>(); services.AddScoped <IInventoryItemService, InventoryItemService>(); services.AddScoped <IInventoryService, InventoryService>(); services.AddScoped <IItemService, ItemService>(); services.AddScoped <IQuestService, QuestService>(); services.AddScoped <IEnemyService, EnemyService>(); services.AddScoped <IStatsService, StatsService>(); this.provider = services.BuildServiceProvider(); this.context = provider.GetService <ApplicationDbContext>(); this.signInManager = provider.GetService <SignInManager <Player> >(); this.roleManager = provider.GetService <RoleManager <IdentityRole> >(); this.accountService = provider.GetService <IAccountService>(); this.characterService = provider.GetService <ICharacterService>(); this.inventoryItemService = provider.GetService <IInventoryItemService>(); this.inventoryService = provider.GetService <IInventoryService>(); this.itemService = provider.GetService <IItemService>(); this.questService = provider.GetService <IQuestService>(); this.enemyService = provider.GetService <IEnemyService>(); this.statsService = provider.GetService <IStatsService>(); }
public InventoryItemServiceTests() { var services = new ServiceCollection(); services.AddDbContext <ApplicationDbContext>(options => options.UseInMemoryDatabase(Guid.NewGuid().ToString()).UseLazyLoadingProxies()); services.AddScoped <IInventoryItemService, InventoryItemService>(); this.provider = services.BuildServiceProvider(); this.context = provider.GetService <ApplicationDbContext>(); this.inventoryItemService = provider.GetService <IInventoryItemService>(); }
public InventoryItemController(IInventoryItemService inventoryItemService) { _inventoryItemService = inventoryItemService; }
public HomeController(IInventoryItemService inventoryItemService, IUserService userService, ICorrolationIdHelper corrolationIdHelper) { InventoryItemService = inventoryItemService; UserService = userService; CorrolationIdHelper = corrolationIdHelper; }
public InventoryItemsController(IInventoryItemService inventoryService) { _businessService = inventoryService; }
public InventoryItemController(IInventoryItemService service) { this._service = service; }
public InventoryItemsController(IInventoryItemService service, IProductService productService) : base(service) { _productService = productService; }
public InventoryItemControllerTest() { _service = new InventoryItemServiceFake(); _controller = new InventoryItemController(_service); }
public ProductClientService(IProductDataProxy dataProxy, IOrderDataProxy orderDataProxy, IInventoryItemService inventoryService, ITransactionContext transactionContext) : base(dataProxy, orderDataProxy, inventoryService, transactionContext) { }
public ProductClientService(IProductDataProxy dataProxy, IOrderDataProxy orderDataProxy, IInventoryItemService inventoryService, ITransactionContext transactionContext) : base(dataProxy, orderDataProxy, inventoryService, transactionContext) { }
public InventoryItemsController(UserManager <Employee> userManager, IInventoryItemService inventoryItemService) { _userManager = userManager; this.inventoryItemService = inventoryItemService; }
public ProductService(IProductDataProxy dataProxy, IOrderService orderService, IInventoryItemService inventoryService, ITransactionContext transactionContext) : base(dataProxy) { _orderService = orderService; _inventoryService = inventoryService; _transactionContext = transactionContext; }
public InventoryService(ApplicationDbContext context, IInventoryItemService inventoryItemService, IItemService itemService) { this.context = context; this.inventoryItemService = inventoryItemService; this.itemService = itemService; }