summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId.Test/UI/UITestSupport.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenId.Test/UI/UITestSupport.cs')
-rw-r--r--src/DotNetOpenId.Test/UI/UITestSupport.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/DotNetOpenId.Test/UI/UITestSupport.cs b/src/DotNetOpenId.Test/UI/UITestSupport.cs
new file mode 100644
index 0000000..40d169a
--- /dev/null
+++ b/src/DotNetOpenId.Test/UI/UITestSupport.cs
@@ -0,0 +1,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;
+ }
+ }
+ }
+}