Exemple #1
0
        public void IsBasicFeeAdded()
        {
            Random           randomNumber = new Random();
            IFeeCalculator   SUT          = new FeeCalculator();
            ITransactionData transaction  = new TransactionData();

            for (int i = 0; i < 100; i++)
            {
                transaction.Amount = (decimal)(randomNumber.NextDouble() * 200);
                transaction.Fee    = SUT.AddBasicFee(transaction);

                Assert.AreEqual(transaction.Amount / 100, transaction.Fee);
            }
        }