public void Start_CreatesNewLinkData_SetsToView() { ILinkerView view = MockRepository.GenerateMock<ILinkerView>(); MainController controller = new MainController(view, null, null, null, null); controller.Start(); view.AssertWasCalled(v => v.SetOperationData(Arg<LinkOperationData>.Is.NotNull)); }
public void Start_RegisterValidatorPassedIn_ViewValidationDelegateIsRegistered() { ILinkerView view = MockRepository.GenerateMock<ILinkerView>(); IPathValidation validator = MockRepository.GenerateMock<IPathValidation>(); MainController controller = new MainController(view, validator, null, null, null); controller.Start(); view.AssertWasCalled(v => v.ValidatePath += Arg<PathValidater>.Is.NotNull); }