diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-04-15 21:15:24 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2008-04-15 22:23:48 -0700 |
commit | ea36fd5a24e311cfa399fd36f86b7ec55113cc8f (patch) | |
tree | 42bf3c147a7c7adc9da0cd87b5c2d299943647a7 /src/DotNetOpenId.Test/TestSupport.cs | |
parent | bedb0be63a15af113ce584b3e24f01a2b9daa1a1 (diff) | |
download | DotNetOpenAuth-ea36fd5a24e311cfa399fd36f86b7ec55113cc8f.zip DotNetOpenAuth-ea36fd5a24e311cfa399fd36f86b7ec55113cc8f.tar.gz DotNetOpenAuth-ea36fd5a24e311cfa399fd36f86b7ec55113cc8f.tar.bz2 |
BREAKING CHANGE for SimpleRegistration extension, and other stuff.
* SimpleRegistration changed from struct to class.
* SimpleRegistrationFieldValues.None and SimpleRegistrationRequestFields.None removed.
* Semantic for extension classes that ReadFromRequest or ReadFromResponse and don't find any matching parameters changed from returning an empty struct to returning null.
* Added framework for testing extensions.
* Upgraded TestWeb project to .NET 3.5.
* Built up bare framework for sending/receiving Attribute Exchange extension messages.
Diffstat (limited to 'src/DotNetOpenId.Test/TestSupport.cs')
-rw-r--r-- | src/DotNetOpenId.Test/TestSupport.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/DotNetOpenId.Test/TestSupport.cs b/src/DotNetOpenId.Test/TestSupport.cs index 33e3935..747c83a 100644 --- a/src/DotNetOpenId.Test/TestSupport.cs +++ b/src/DotNetOpenId.Test/TestSupport.cs @@ -20,9 +20,20 @@ public class TestSupport { public const string MobileConsumerPage = "RelyingPartyMobile.aspx";
public const string ConsumerPage = "RelyingParty.aspx";
public enum Scenarios {
+ // Authentication test scenarios
AutoApproval,
ApproveOnSetup,
AlwaysDeny,
+
+ // Extension test scenarios
+ /// <summary>
+ /// Provides all required and requested fields.
+ /// </summary>
+ ExtensionFullCooperation,
+ /// <summary>
+ /// Provides only those fields marked as required.
+ /// </summary>
+ ExtensionPartialCooperation,
}
internal static UriIdentifier GetIdentityUrl(Scenarios scenario, ProtocolVersion providerVersion) {
UriBuilder builder = new UriBuilder(Host.BaseUri);
|