private void buildApplication() { _application = new SerenityJasmineApplication(); var fileSystem = new FileSystem(); var loader = new JasmineConfigLoader(fileSystem); var configurator = new JasmineConfigurator(fileSystem, loader); _configuration = configurator.Configure(_input.SerenityFile, _application); var applicationSettings = new ApplicationSettings { RootUrl = "http://localhost:" + _input.PortFlag }; IBrowserLifecycle browserBuilder = _input.GetBrowser(); _applicationUnderTest = new ApplicationUnderTest(_application, applicationSettings, browserBuilder); _driver = new NavigationDriver(_applicationUnderTest); }
public void SetUp() { theFileSystem = MockRepository.GenerateStub<IFileSystem>(); theFile = TestFileHelper.RelativePath("serenity.txt"); theFileContents = "exclude:MyProject.Web{0}.idea".ToFormat(Path.DirectorySeparatorChar); theFileSystem.Stub(x => x.ReadStringFromFile(theFile.ToFullPath())).Return(theFileContents); theLoader = new JasmineConfigLoader(theFileSystem); theConfiguration = theLoader.LoadFrom(theFile); }
public void SetUp() { theFileSystem = MockRepository.GenerateStub<IFileSystem>(); theFile = TestFileHelper.RelativePath("serenity.txt"); theFileContents = new StringBuilder() .AppendLine("include:MyProject.Web") .AppendLine("include:MyProject.Web2") .ToString(); theFileSystem.Stub(x => x.ReadStringFromFile(theFile.ToFullPath())).Return(theFileContents); theLoader = new JasmineConfigLoader(theFileSystem); theConfiguration = theLoader.LoadFrom(theFile); }