public void Setup() { _fakeDriver = new FakeWebDriver(); _handler = new TypeSubstitutionHandler(new PassengerConfiguration { Driver = _fakeDriver }); }
public PageObjectProxy(PassengerConfiguration configuration) { _configuration = configuration; _typeSubstitution = new TypeSubstitutionHandler(configuration); _elementSelectionHandler = new ElementSelectionHandler(configuration); _postProcessor = new ReturnValuePostProcessor(configuration); }
public void FindSubstituteFor_DriverNull_ReturnsNull() { _handler = new TypeSubstitutionHandler(null); var sub = _handler.FindSubstituteFor(typeof(string)); Assert.That(sub, Is.Null); }