public void TestInitialize() { _storeLogicService = StoreLogicService.Instance; //todo ut: how can we re-initialize _storeLogicService if it's a singleton? _dataLayer = Substitute.For <IDataLayer>(); _storeLogicService.DataLayer = _dataLayer; }
public string Register(string username) { Customer cust = new Customer(username); if (StoreLogicService.RegisterCustomer(cust)) { return(cust.Password); } return("Error"); }
public double GetBalance(string username) { return(StoreLogicService.GetBalance(username)); }
public IEnumerable <CustomerProduct> GetAllOrders(string username) { return(StoreLogicService.GetAllOrders(username)); }
public bool BuyProduct(string username, string productName, int quantity) { return(StoreLogicService.BuyProduct(username, productName, quantity)); }
public IEnumerable <StoreProduct> GetProducts() { return(StoreLogicService.GetProducts()); }
public bool CheckLogin(String username, String password) { return(StoreLogicService.VerifyLogin(username, password)); }