コード例 #1
0
        public void TestMethod_OpenStoreDB()
        {
            Setup();
            db.OpenStoreDB(store, this.adminOwner);
            DBmanager checkDB = new DBmanager(false);

            Assert.AreEqual(store.Name, checkDB.getStore(store.Id).Name);
            Assert.AreEqual(10, checkDB.getProductInStoreQuntity(store.Id, p1.Id));
            Assert.AreEqual(true, checkDB.isOwnerDB(store.Id, admin.Id));
        }