Exemplo n.º 1
0
        public void Failure_NotLoggedIn()
        {
            new UseCase_LogOut_TestLogic(SystemContext).Success_Normal();
            ProductId productId = productsToRemove.First().ProductId;

            Assert.IsFalse(MarketBridge.RemoveProductFromShop(ShopId, productId));
        }
Exemplo n.º 2
0
        public void Failure_InsufficientPermissions()
        {
            LoginToBuyer();
            ProductId productId = productsToRemove.First().ProductId;

            Assert.IsFalse(MarketBridge.RemoveProductFromShop(ShopId, productId));
        }
Exemplo n.º 3
0
 private void RemoveProducts()
 {
     foreach (ProductIdentifiable product in productsToRemove)
     {
         Assert.IsTrue(MarketBridge.RemoveProductFromShop(ShopId, product.ProductId));
     }
 }
Exemplo n.º 4
0
 public override void Teardown()
 {
     _ = UserBridge.AssureLogin(ShopImage.OwnerUser);
     foreach (ProductId productId in teardownProducts)
     {
         _ = MarketBridge.RemoveProductFromShop(ShopId, productId);
     }
     useCase_openShop.Teardown();
 }
Exemplo n.º 5
0
        public void Failure_ShopDoesntExist()
        {
            ProductId productId = productsToRemove.First().ProductId;

            Assert.IsFalse(MarketBridge.RemoveProductFromShop(new ShopId(Guid.NewGuid(), "notexists"), productId));
        }