public void ReadingTransactionsFromFile()
        {
            var transactions = TransactionServiceBll.GetTransactions(InputTextPath);

            var transactionCount = transactions.Count();

            Assert.AreEqual(21, transactionCount);
        }
        public void IgnoredTransactionCount()
        {
            var transactions = TransactionServiceBll.GetTransactions(InputTextPath);

            var ignoredTransactions     = transactions.Where(transaction => transaction.GetType() == typeof(IgnoredTransaction));
            var ignoredTransactionCount = ignoredTransactions.Count();

            Assert.AreEqual(1, ignoredTransactionCount);
        }
        public void CheckTransactionPriceAndDiscount()
        {
            const int TransactionsToSkip  = 17;
            var       selectedTransaction = TransactionServiceBll.GetTransactions(InputTextPath).Skip(TransactionsToSkip).FirstOrDefault();

            var price    = selectedTransaction.Package.Shipment.Price;
            var discount = selectedTransaction.Package.Shipment.Discount;

            Assert.IsNotNull(selectedTransaction);
            Assert.AreEqual(price, 1.90M);
            Assert.AreEqual(discount, 0.10M);
        }