public void LastCalculatedDataSaved()
        {
            //Act
            DepositPage depositPage = new DepositPage(driver);

            depositPage.SetAmountRateTerm(12345, 87, 299);
            depositPage.SelectFinYear(360);
            depositPage.Calculate();

            //Assert
            Assert.AreEqual(depositPage.CaptureDataToArray(), depositPage.OpenHistoryPage().CaptureRowToArray(1));
        }
        public void OrderingInHistory(int amount_of_calculations)
        {
            //Act
            String[]    entered_values = new string[8];
            DepositPage depositPage    = new DepositPage(driver);

            for (int i = 0; i < amount_of_calculations; i++)
            {
                depositPage.SetAmountRateTerm(12341 + i, 91 + i, 301 + i);
                depositPage.Calculate();
                if (i == 0)
                {
                    entered_values = depositPage.CaptureDataToArray();
                }
            }

            //Assert
            Assert.AreEqual(entered_values, depositPage.OpenHistoryPage().CaptureRowToArray(amount_of_calculations));
        }