public PaceFormPresenterTest() { _viewMock = new Mock<IPaceForm>(); _dataMock = new Mock<IData>(); _viewMock .SetupSequence(view => view.ChangedPaces) .Returns(new Tuple<Pace.Names, TimeSpan>[0]) .Returns(new[] {new Tuple<Pace.Names, TimeSpan>(Pace.Names.Base, TimeSpan.FromMinutes(5))}) .Returns(new[] { new Tuple<Pace.Names, TimeSpan>(Pace.Names.Base, TimeSpan.FromMinutes(5)), new Tuple<Pace.Names, TimeSpan>(Pace.Names.Marathon, TimeSpan.FromSeconds(1234)) }); _testee = new PaceFormPresenter(_viewMock.Object, _dataMock.Object); }
private void OnConfigurePacesClick() { var form = new PaceForm(); var presenter = new PaceFormPresenter(form, Data); form.Show(); }