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); }
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); }