Beispiel #1
0
 public void Setup()
 {
     _fakeDriver = new FakeWebDriver();
     _handler    = new TypeSubstitutionHandler(new PassengerConfiguration {
         Driver = _fakeDriver
     });
 }
Beispiel #2
0
 public PageObjectProxy(PassengerConfiguration configuration)
 {
     _configuration           = configuration;
     _typeSubstitution        = new TypeSubstitutionHandler(configuration);
     _elementSelectionHandler = new ElementSelectionHandler(configuration);
     _postProcessor           = new ReturnValuePostProcessor(configuration);
 }
Beispiel #3
0
        public void FindSubstituteFor_DriverNull_ReturnsNull()
        {
            _handler = new TypeSubstitutionHandler(null);

            var sub = _handler.FindSubstituteFor(typeof(string));

            Assert.That(sub, Is.Null);
        }