summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId.Test/UI/UITestSupport.cs
blob: 40d169a6679d987b865ba787161940820f250385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using DotNetOpenId.Test.Hosting;

namespace DotNetOpenId.Test.UI {
	[SetUpFixture]
	public class UITestSupport {
		internal static AspNetHost Host { get; private set; }

		[SetUp]
		public void SetUp() {
			Host = AspNetHost.CreateHost(TestSupport.TestWebDirectory);
		}

		[TearDown]
		public void TearDown() {
			if (Host != null) {
				Host.CloseHttp();
				Host = null;
			}
		}
	}
}