public void BuildNoDataTest() { MarketDB.ToDisable = false; MarketDB.Instance.InsertByForce(); var marketSession = MarketYard.Instance; var userService = marketSession.GetUserService(); answer = userService.EnterSystem(); Assert.AreEqual((int)EnterSystemStatus.Success, answer.Status); answer = userService.SignIn("Arik1", "123"); Assert.AreEqual((int)SignInStatus.Success, answer.Status); storeManagingService = marketSession.GetStoreManagementService(userService, "T"); MarketDB.ToDisable = true; }
public StoreManagementController ( ILogger <SalesController> logger, ISalesRepository repo, ISalesService salesService, IPromotionsService promoService, IInventoryService inventoryService, IMapper mapper, IStoreManagementService managementService ) { _logger = logger; _saleService = salesService; _promoService = promoService; _repo = repo; _mapper = mapper; _inventoryService = inventoryService; _mangementService = managementService; }
public void GetStoreManagementService(IUserService userService, string store) { _storeManagementService = _market.GetStoreManagementService(userService, store); }
public RealStoreManagement() { _market = MarketYard.Instance; _storeManagementService = null; }