diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-08 16:34:40 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-08 16:34:40 -0700 |
commit | 96cbcaec96d67236244977b0caeb0ff7ec01b749 (patch) | |
tree | 2c513c7fb123d2b9fe3ee5655fa0495343911a83 /src/DotNetOpenId.Test/UI/UITestSupport.cs | |
parent | 3fb65cccfa1e35de45b3b42cf0f7867b77dca254 (diff) | |
download | DotNetOpenAuth-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.cs | 26 |
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;
+ }
+ }
+ }
+}
|