public void SetUp()
        {
            _container = new RhinoAutoMocker<EntryPresenter>();
            _systemUnderTest = _container.ClassUnderTest;
            _entryView = _container.Get<IEntryView>();
            _repository = _container.Get<IRepository>();
            _recentActivities = _container.Get<IRecentActivities>();

              	_recentActivities
              		.Stub(x => x.First)
              		.Return(ACTIVITY);

              	_recentActivities
              		.Stub(x => x.ToArray())
              		.Return(new[]{ ACTIVITY });

              	_entryView
                .Stub(x => x.Duration)
                .Return(DURATION);

            _entryView
                .Stub(x => x.Activity)
                .Return(ACTIVITY);

            _entryView.Stub(x => x.Note).Return(NOTE);
            _entryView.Raise(x => x.KeyDown += null, this, new KeyEventArgs(Keys.Enter));
        }
        public void Setup()
        {
            _container = new RhinoAutoMocker<EntryPresenter>();
            _systemUnderTest = _container.ClassUnderTest;
            _entryView = _container.Get<IEntryView>();

            _entryView.Raise(x => x.KeyDown += null, this, new KeyEventArgs(Keys.Escape));
        }
        public void Setup()
        {
            _container = new RhinoAutoMocker<EntryPresenter>();
            _systemUnderTest = _container.ClassUnderTest;
            _entryView = _container.Get<IEntryView>();

            _entryView
                .Stub(x => x.Duration)
                .Return("0");

            _entryView.Raise(x=>x.DurationTextChanged += null, this, EventArgs.Empty);
        }
        public void Setup()
        {
            _container = new RhinoAutoMocker<EntryPresenter>();
            _systemUnderTest = _container.ClassUnderTest;
            _entryView = _container.Get<IEntryView>();

            _entryView
                .Stub(x => x.Duration)
                .Return(DateTime.Now.ToShortTimeString());

            _entryView.Raise(x => x.KeyDown += null, this, new KeyEventArgs(Keys.Enter));
        }
 public void Setup()
 {
     _container = new RhinoAutoMocker<EntryPresenter>();
     _systemUnderTest = _container.ClassUnderTest;
 }