public void TestWronGrantType() { TokenContext ctx = new TokenContext { GrantType = Parameters.GrantTypeValues.AuthorizationCode }; ResourceOwnerPasswordCredentialInspector inspector = new ResourceOwnerPasswordCredentialInspector(); inspector.Inspect(ctx); }
public void TestWronGrantType() { TokenContext ctx = new TokenContext { GrantType = Parameters.GrantTypeValues.AuthorizationCode }; ResourceOwnerPasswordCredentialInspector inspector = new ResourceOwnerPasswordCredentialInspector(); inspector.Inspect(ctx); }
public void TestContextMissingPassword() { TokenContext ctx = new TokenContext { GrantType = Parameters.GrantTypeValues.Password, ResourceOwnerUsername = "******", Scope = new string[] { "create", "delete" } }; ResourceOwnerPasswordCredentialInspector inspector = new ResourceOwnerPasswordCredentialInspector(); CommonAssertInspector(inspector, ctx); }
public void TestContextMissingPassword() { TokenContext ctx = new TokenContext { GrantType = Parameters.GrantTypeValues.Password, ResourceOwnerUsername = "******", Scope = new string[] { "create", "delete" } }; ResourceOwnerPasswordCredentialInspector inspector = new ResourceOwnerPasswordCredentialInspector(); CommonAssertInspector(inspector, ctx); }
public void TestValidContext() { TokenContext ctx = new TokenContext { GrantType = Parameters.GrantTypeValues.Password, ResourceOwnerUsername = "******", ResourceOwnerPassword = "******", Scope = new string[] { "create", "delete" } }; ResourceOwnerPasswordCredentialInspector inspector = new ResourceOwnerPasswordCredentialInspector(); inspector.Inspect(ctx); }
public void TestValidContext() { TokenContext ctx = new TokenContext { GrantType = Parameters.GrantTypeValues.Password, ResourceOwnerUsername = "******", ResourceOwnerPassword = "******", Scope = new string[] { "create", "delete" } }; ResourceOwnerPasswordCredentialInspector inspector = new ResourceOwnerPasswordCredentialInspector(); inspector.Inspect(ctx); }