コード例 #1
0
 public void TestInit()
 {
     _dateProvider   = Mock.Create <IDateTimeProvider>();
     _scheduleHelper = new HabitScheduleHelper(_dateProvider);
     _habit          = Mock.Create <IHabitViewModel>();
 }
コード例 #2
0
 private HabitViewModel(IDateTimeProvider dateTimeProvider, IHabitService habitService)
 {
     _dateTimeProvider = dateTimeProvider;
     _habitService     = habitService;
     _scheduleHelper   = new HabitScheduleHelper(_habitService.DateTimeProvider);
 }