summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId.Test/UI/UITestSupport.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-08-08 16:34:40 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2008-08-08 16:34:40 -0700
commit96cbcaec96d67236244977b0caeb0ff7ec01b749 (patch)
tree2c513c7fb123d2b9fe3ee5655fa0495343911a83 /src/DotNetOpenId.Test/UI/UITestSupport.cs
parent3fb65cccfa1e35de45b3b42cf0f7867b77dca254 (diff)
downloadDotNetOpenAuth-96cbcaec96d67236244977b0caeb0ff7ec01b749.zip
DotNetOpenAuth-96cbcaec96d67236244977b0caeb0ff7ec01b749.tar.gz
DotNetOpenAuth-96cbcaec96d67236244977b0caeb0ff7ec01b749.tar.bz2
Moved ASP.NET engine initialization in unit tests to just the UI namespace.
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;
+ }
+ }
+ }
+}