public void SetUp ()
        {
            _sessionIds = new List<string> ();

            _slot1 = new Slot {
                StartTime = new DateTime (2014, 10, 1, 8, 0, 0),
                EndTime = new DateTime (2014, 10, 1, 8, 50, 0),
                SessionIds = _sessionIds
            };

            _slot2 = new Slot {
                StartTime = new DateTime (2014, 10, 1, 9, 0, 0),
                EndTime = new DateTime (2014, 10, 1, 9, 50, 0),
                SessionIds = _sessionIds
            };

            _days = new List<Day> {
                new Day {
                    Date = new DateTime(2014, 10, 1),
                    Slots = new List<Slot> {
                        _slot1,
                        _slot2
                    }
                }
            };

            _schedule = new Schedule { Days = _days };
            _appConfig = new AppConfig ();

            _repository = new MockRepository {
                GetDaysResult = _days,
                GetScheduleResult = _schedule,
                GetAppConfigResult = _appConfig
            };

            _sessions = new List<Session> ();
            _repository.GetSessionsResults [_sessionIds] = _sessions;

            _timeService = new MockTimeService ();
            _twitterService = new MockTwitterService ();
            _sut = new HomeViewModel (_repository, _timeService, _twitterService);
        }
 public void SetUp ()
 {
     _repository = new MockRepository ();
     _timeService = new MockTimeService ();
     _sut = new AgendaViewModel (_repository, _timeService) {
         AgendaDays = new List<AgendaDayViewModel> {
             new AgendaDayViewModel {
                 Date = new DateTime(2014, 10, 6)
             },
             new AgendaDayViewModel {
                 Date = new DateTime(2014, 10, 7)
             },
             new AgendaDayViewModel {
                 Date = new DateTime(2014, 10, 8)
             }
         }
     };
     
     _firstDay = _sut.AgendaDays.First ();
     _lastDay = _sut.AgendaDays.Last ();
 }
		public void SetUp ()
		{
			_repository = new MockRepository ();
			_sut = new EditProfileViewModel (_repository);
		}
 public void SetUp ()
 {
     _repository = new MockRepository ();
     _sut = new MenuViewModel (_repository, null);
 }
 public void SetUp ()
 {
     _repository = new MockRepository ();
     _sut = new FullScheduleViewModel (_repository);
 }