public void ConstructorShouldInitializeView() { var searchParametersViewMock = new FilterParametesViewMock(); var searchParametersPresenter = new FilterParametersPresenter(searchParametersViewMock); Assert.That(searchParametersPresenter.View, Is.EqualTo(searchParametersViewMock)); }
public void InitializeShouldSetViewModel() { var searchParametersViewMock = new FilterParametesViewMock(); var searchParametersPresenter = new FilterParametersPresenter(searchParametersViewMock); var searchParametersViewModel = new FilterParametersViewModel(); searchParametersPresenter.Initialize(searchParametersViewModel); Assert.That(searchParametersViewMock.ViewModel, Is.EqualTo(searchParametersViewModel)); }
/// <summary> /// Конструктор /// </summary> public VisualizerViewMock() { ControlView = new FilterParametesViewMock(); ViewModel = new VisualizerViewModel(); }