コード例 #1
0
        public void GetTest_NotFoundException()
        {
            var store = StoreSelector.Get(Guid.NewGuid().ToString());

            Assert.IsNotNull(store);
            Assert.IsTrue(store.ManagerEmail.Equals("*****@*****.**"));
            Assert.IsTrue(store.WebSiteUrl.Equals("http://www.test.com/"));
        }
コード例 #2
0
        public void GetTest()
        {
            var store = StoreSelector.Get(DefaultStoreId.ToString());

            Assert.IsNotNull(store);
            Assert.IsTrue(store.ManagerEmail.Equals("*****@*****.**"));
            Assert.IsTrue(store.WebSiteUrl.Equals("http://www.test.com/"));
        }
コード例 #3
0
        public void UpdateTest()
        {
            string name  = "Clearwater, FL";
            var    store = StoreSelector.Get(DefaultStoreId);

            Assert.IsFalse(store.Name.Equals(name));
            store.SetName(name);
            StoreUpdator.Update(store);
            store = StoreSelector.Get(DefaultStoreId);
            Assert.IsTrue(store.Name.Equals(name));
        }