Ejemplo n.º 1
0
        public void ThenTheAtmWithdrawHasBeenUpdated()
        {
            var newCountAtmWithdraws = DatabaseChecker.CountAtmWithdraws();

            Assert.AreEqual(newCountAtmWithdraws, _countAtmWithdraws);

            _newCostAtmWithdraw = DatabaseChecker.GetAtmWithdrawInitialAmount(_atmWithdrawId);
            Assert.AreEqual(_costAtmWithdraw + 100, _newCostAtmWithdraw);
        }
Ejemplo n.º 2
0
        public void GivenIHaveAccessedTheAtmWithdrawListPage()
        {
            SiteMap.AccountManagementDashboardPage.GoTo();
            _sourceAccountId     = SiteMap.AccountManagementDashboardPage.SelectAccount();
            _sourceAccountAmount = DatabaseChecker.GetBankAccountAmount(_sourceAccountId);

            SiteMap.AtmWithdrawListPage.GoTo();

            _countAtmWithdraws = DatabaseChecker.CountAtmWithdraws();
            _countMovements    = DatabaseChecker.CountMovements();
        }
Ejemplo n.º 3
0
        public void ThenTheAtmWithdrawHasBeenRemoved()
        {
            var newCountAtmWithdraws = DatabaseChecker.CountAtmWithdraws();

            Assert.AreEqual(newCountAtmWithdraws, _countAtmWithdraws - 1);
        }
        public void ThenAnAtmWithdrawHasBeenCreated()
        {
            var newCountAtmWithdraws = DatabaseChecker.CountAtmWithdraws();

            Assert.AreEqual(newCountAtmWithdraws, _countAtmWithdraws + 1);
        }