Example #1
0
 public void Setup()
 {
     _fakeDriver = new FakeWebDriver();
     _handler    = new TypeSubstitutionHandler(new PassengerConfiguration {
         Driver = _fakeDriver
     });
 }
        private void runRecordActions(System.Collections.Generic.List<object> listOfItems)
        {
            IWebDriver webDriver = new FakeWebDriver();
            CurrentData.CurrentWebDriver = webDriver;
            
            var cmdlet = new TranscriptCmdletBase();
            cmdlet.Timeout = 10;

            IJSRecorder recorder = new FakeJSGenerator(listOfItems);

            Recorder.RecordActions(cmdlet, recorder, cmdlet.Language);
        }
Example #3
0
        private void runRecordActions(List <object> listOfItems)
        {
            IWebDriver webDriver = new FakeWebDriver();

            CurrentData.CurrentWebDriver = webDriver;

            var cmdlet = new TranscriptCmdletBase();

            cmdlet.Timeout = 10;

            IJsRecorder recorder = new FakeJSGenerator(listOfItems);

            Recorder.RecordActions(cmdlet, recorder, cmdlet.Language);
        }
Example #4
0
        public void Setup()
        {
#if PROD
            Environment.SetEnvironmentVariable("ASPNETCORE_ENVIRONMENT", "Prod");
#elif TEST
            Environment.SetEnvironmentVariable("ASPNETCORE_ENVIRONMENT", "Test");
#endif

            var env = System.Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");

            _configuration = new ConfigurationBuilder()
                             .AddJsonFile("appsettings.json", true, true)
                             .AddJsonFile($"appsettings.{env}.json", true, true)
                             .Build();

            var fakeWebDriver = new FakeWebDriver();
            _context = new DriverContext(_configuration, fakeWebDriver);
        }
Example #5
0
 public FakeApplication()
 {
     Driver = new FakeWebDriver();
     Urls   = new StubHttpUrlRegistry();
 }