Inheritance: ProcessDriver
		public void Dispose()
		{
			if (_iisExpress != null)
			{
				_iisExpress.Dispose();
				_iisExpress = null;
			}
		}
		public void Dispose()
		{
			if (iisExpress != null)
			{
				iisExpress.Dispose();
				iisExpress = null;
			}

			IOExtensions.DeleteDirectory(Path.GetFullPath(WebDirectory));
		}
Exemple #3
0
		public IDocumentStore NewDocumentStore()
		{
			if (iisExpress == null)
			{
				iisExpress = new IISExpressDriver();
				iisExpress.Start(DeployWebProjectToTestDirectory(), 8084);
			}

			return new DocumentStore {Url = iisExpress.Url}.Initialize();
		}
		public IDocumentStore NewDocumentStore(bool fiddler = false)
		{
			if (iisExpress == null)
			{
				iisExpress = new IISExpressDriver();
				iisExpress.Start(DeployWebProjectToTestDirectory(), 8084);
			}

			var url = iisExpress.Url;
			if (fiddler)
				url = url.Replace("localhost", "localhost.fiddler");
			return new DocumentStore {Url = url}.Initialize();
		}
		public IDocumentStore NewDocumentStore()
		{
			if (_iisExpress == null)
			{
				_iisExpress = new IISExpressDriver();

				_iisExpress.Start(IISDeploymentUtil.DeployWebProjectToTestDirectory(), 8084);
			}

			return new DocumentStore()
			{
				Url = _iisExpress.Url
			}.Initialize();
		}
		public IDocumentStore NewDocumentStore(bool fiddler = false, Dictionary<string, string> settings = null)
		{
			if (iisExpress == null)
			{
				iisExpress = new IISExpressDriver();
				var iisTestWebDirectory = DeployWebProjectToTestDirectory();

				if (settings != null)
				{
					ModifyWebConfig(Path.Combine(iisTestWebDirectory, "web.config"), settings);
				}

				iisExpress.Start(iisTestWebDirectory, 8084);
			}

			var url = iisExpress.Url;
			if (fiddler)
				url = url.Replace("localhost", "localhost.fiddler");
			return new DocumentStore {Url = url}.Initialize();
		}