Exemple #1
0
        public void Bid_ExpectedScenario()
        {
            //Arrange
            testBidder = userCtrl.Login(testBidder.UserName, testBidder.Password);

            double amount = testItem.InitialPrice + 1;
            string token  = testBidder.LoginToken.SecureToken;

            //Act
            bool success = bidCtrl.Bid(testItem.Id, amount, token);

            //Assert
            Assert.IsTrue(success, "Bid was not placed!");
        }
Exemple #2
0
 public bool BidOnItem(int itemId, double amount, string token)
 {
     return(BidCtrl.Bid(itemId, amount, token));
 }