Exemplo n.º 1
0
        public void GetAuthorizationUrlWhenJpLocaleIsSpecified()
        {
            var url      = this._authenticationService.GetAuthorizationUrl(SquareOAuthPermissions.GetDefault(), SquareLocale.JaJP);
            var htmlForm = this._authenticationService.GetAuthenticationHtmlForm(url).Result;

            htmlForm.Should().NotBeNullOrWhiteSpace();
            htmlForm.Should().Contain("ログイン");
        }
Exemplo n.º 2
0
        public void GetAuthorizationUrl()
        {
            var url      = this._authenticationService.GetAuthorizationUrl(SquareOAuthPermissions.GetDefault());
            var htmlForm = this._authenticationService.GetAuthenticationHtmlForm(url).Result;

            htmlForm.Should().NotBeNullOrWhiteSpace();
            htmlForm.Should().Contain("Sign In");
        }