public void FailToGrantCredentialsToUserIfPasswordIsIncorrect() { CredentialsAuthorizationServerProvider prov = new CredentialsAuthorizationServerProvider(); prov.GrantResourceOwnerCredentials( new OAuthGrantResourceOwnerCredentialsContext( new OwinContext(), new OAuthAuthorizationServerOptions(), "1", "*****@*****.**", "sjdlkjasdlkjasd;kajsd", new List <string>())); }
public void BeAbleToGrantCredentialsToUser() { CredentialsAuthorizationServerProvider prov = new CredentialsAuthorizationServerProvider(); prov.GrantResourceOwnerCredentials( new OAuthGrantResourceOwnerCredentialsContext( new OwinContext(), new OAuthAuthorizationServerOptions(), "1", "*****@*****.**", "HOLA1234", new List <string>())); }