Beispiel #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);
 }
Beispiel #2
0
        public void Employee_Has_Right_Discount_And_Join_Date()
        {
            var dateJoined = DateTime.UtcNow;

            var employee = new Employee(dateJoined);

            Assert.Equal(0.3M, employee.Discount);
            Assert.Equal(dateJoined, employee.DateJoined);
        }