public App() { IView mview = new MView(); IModel model = new Model.Model(); Presenter.Presenter presenter = new Presenter.Presenter(mview, model); }
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"))); }