Exemple #1
0
        public App()
        {
            IView  mview = new MView();
            IModel model = new Model.Model();

            Presenter.Presenter presenter = new Presenter.Presenter(mview, model);
        }
Exemple #2
0
        public void ctor_WhenViewIsLoaded_CallsViewRender()
        {
            var mockView = Substitute.For <IView>();

            Presenter.Presenter p = new Presenter.Presenter(mockView);
            mockView.Loaded += Raise.Event <Action>();

            mockView.Received().Render(Arg.Is <string>(s => s.Contains("Hello World")));
        }