public void Init() { _fixture = new Fixture().Customize(new AutoRhinoMockCustomization()); _sut = MockRepository.GeneratePartialMock<ComponentInfoHandler>(); _currentAssembly = _fixture.Create<Assembly>(); _sut.Stub(x => x.GetComponentAssembly()).Return(_currentAssembly); _question = _fixture.Create<IThermometerQuestion>(); _question.Stub(x => x.RequestUri).Return(new Uri("http://servername:8888/xxx/yyy?a=b&c=d")); }
public void HandlerShouldReturnUnknown() { // Arrange _sut = MockRepository.GeneratePartialMock<ComponentInfoHandler>(); // Act var answer = _sut.Handler(_question); // Assert Assert.AreEqual("Unknown Component", answer); }
public void Init() { _fixture = new Fixture().Customize(new AutoRhinoMockCustomization()); _sut = MockRepository.GeneratePartialMock<ComponentInfoHandler>(); }