Example #1
0
 public UserFixture()
 {
     OldCustomer = new Customer(DateTime.UtcNow.Subtract(TimeSpan.FromDays(735)));
     NewCustomer = new Customer(DateTime.UtcNow);
     Employee = new Employee(DateTime.UtcNow);
     Affiliate = new Affiliate(DateTime.UtcNow);
 }
Example #2
0
        public void Affiliate_Has_Right_Discount_And_Join_Date()
        {
            var dateJoined = DateTime.UtcNow;

            var affiliate = new Affiliate(dateJoined);

            Assert.Equal(0.1M, affiliate.Discount);
            Assert.Equal(dateJoined, affiliate.DateJoined);
        }