Example #1
0
        public void OwnershiprequestJust1_test()
        {
            Init();

            ConnectionStubTemp.createOwnershipRequest(store, firstStoreOwner, SecondStoreOwner);
            Assert.IsTrue(SecondStoreOwner.isStoresOwner(storeId));
            Cealup();
        }
Example #2
0
        public void OwnershiprequestmoreThan1_test()
        {
            Init();
            int requestId1, requestId2;

            ConnectionStubTemp.createOwnershipRequest(store, firstStoreOwner, SecondStoreOwner);
            Assert.IsTrue(SecondStoreOwner.isStoresOwner(storeId));

            requestId1 = ConnectionStubTemp.createOwnershipRequest(store, firstStoreOwner, ThirdStoreOwner);
            SecondStoreOwner.approveOwnershipRequest(requestId1);
            Assert.IsTrue(ThirdStoreOwner.isStoresOwner(storeId));

            requestId2 = requestId1 = ConnectionStubTemp.createOwnershipRequest(store, ThirdStoreOwner, LastStoreOwner);
            firstStoreOwner.approveOwnershipRequest(requestId2);
            SecondStoreOwner.approveOwnershipRequest(requestId2);
            Assert.IsTrue(LastStoreOwner.isStoresOwner(storeId));
            Cealup();
        }