Inheritance: EntityBase
Esempio n. 1
0
        public void AddTransactionMethod_AmountLessThanTenDollars_ThrowsException()
        {
            var transaction = new Transaction { Id = 91325125, Amount = 9.99M };

            var sut = new Batch();
            sut.AddTransaction(transaction);
        }
Esempio n. 2
0
 public Batch BillForMonthlyCharge(DateTime today)
 {
     DisallowManualChargesForOntarioCustomers(this);
     var transaction = new Transaction { Id = 3945, Amount = this.PackagePrice };
     var batch = new Batch();
     batch.AddTransaction(transaction);
     return batch;
 }
Esempio n. 3
0
        public void AddTransactionMethod_DuplicateInput_ThrowsException()
        {
            var transaction = new Transaction { Id = 91325125, Amount = 10.01M };

            var sut = new Batch();
            sut.AddTransaction(transaction);
            sut.AddTransaction(transaction);
        }
Esempio n. 4
0
 public void Constructor_NoInputParams_IsInstanceOfEntityBase()
 {
     var sut = new Transaction();
     Assert.IsInstanceOfType(typeof(EntityBase), sut);
 }