Esempio n. 1
0
 public void ConvertToDateTime()
 {
     var day = new CalendarDay(2010, 8, 1);
     Assert.AreEqual(day.ToDateTime().Year, 2010);
     Assert.AreEqual(day.ToDateTime().Month, 8);
     Assert.AreEqual(day.ToDateTime().Day, 1);
 }
Esempio n. 2
0
 public void BindTo(Account account, CalendarDay day)
 {
     Mapper.Map(account, this);
     Goals = account.GoalsFor(day);
     AccountDay = day.ToDateTime();
 }