示例#1
0
        public void CheckName()
        {
            Store store = new Store("SX", "name1test", "here");
            Store find  = handler.GetStorebyName("name1test");

            Assert.IsNull(find);
            Assert.IsFalse(handler.IsStoreExistAndActive("name1test"));
            toDeleteStore = store;
            handler.AddStore(store);
            Assert.IsTrue(handler.IsStoreExistAndActive("name1test"));
        }
示例#2
0
 private void CheckIfStoreExistsAndActive(string _storename)
 {
     if (!storeLogic.IsStoreExistAndActive(_storename))
     {
         throw new StoreException(ViewStoreStatus.NoStore, "store not exists or active");
     }
 }
示例#3
0
 private void CheckIfStoreExitsts(string store)
 {
     if (!storeLogic.IsStoreExistAndActive(store))
     {
         throw new StoreException(StoreEnum.StoreNotExists, "store not exists or active");
     }
 }
示例#4
0
 protected void checkIfStoreExistsAndActive()
 {
     if (!DataLayerInstance.IsStoreExistAndActive(_storeName))
     {
         throw new StoreException(StoreEnum.StoreNotExists, "store not exists or active");
     }
 }
 private void CheckIfStoreExistsAndActive(string _storename)
 {
     if (!_storeLogic.IsStoreExistAndActive(_storename))
     {
         throw new StoreException(GetCategoriesDiscountStatus.NoStore, "store not exists or active");
     }
 }
示例#6
0
 private void CheckIfStoreExists(string storename)
 {
     if (!storeLogic.IsStoreExistAndActive(storename))
     {
         MarketLog.Log("StoreCenter", "store do not exists");
         throw new StoreException(StoreEnum.StoreNotExists, "store not exists or active");
     }
 }