Пример #1
0
        public void ThenTheAtmWithdrawHasBeenUpdated()
        {
            var newCountAtmWithdraws = DatabaseChecker.CountAtmWithdraws();

            Assert.AreEqual(newCountAtmWithdraws, _countAtmWithdraws);

            _newCostAtmWithdraw = DatabaseChecker.GetAtmWithdrawInitialAmount(_atmWithdrawId);
            Assert.AreEqual(_costAtmWithdraw + 100, _newCostAtmWithdraw);
        }
Пример #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();
        }
Пример #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);
        }