public void TestSetUp() { _services = MockRepository.GenerateStub <IApplicationServices>(); _databaseInspector = MockRepository.GenerateStub <IDatabaseInspector>(); _services.Expect(x => x.Resolve <TemplateHost>()).Return(new TemplateHost(_services, _databaseInspector)); _model = new TemplateModel(_services, new NVelocityWrapper()); }
public void TestSetUp() { _services = MockRepository.GenerateStub<IApplicationServices>(); _databaseInspector = MockRepository.GenerateStub<IDatabaseInspector>(); _services.Expect(x => x.Resolve<TemplateHost>()).Return(new TemplateHost(_services, _databaseInspector)); _model = new TemplateModel(_services, new NVelocityWrapper()); }
/// <summary> /// Sets up a basic <see cref="IHostWindow"/> mock assigning it to <see cref="ApplicationServices"/>. /// </summary> /// <remarks> /// The SetStaus method just takes any parameters. /// </remarks> public virtual void SetUpHostWindowMock() { StubHostWindow = MockRepository.GenerateStub <IHostWindow>(); StubAppServices.Expect(services => services.HostWindow).Return(StubHostWindow).Repeat.Any(); }