Exemplo n.º 1
0
 public void ThrowsForNullOAuthRefreshToken()
 {
     Assert.Throws <ArgumentNullException>(
         () => TransactClient.CreateIncludingOAuth(
             1,
             "some_username",
             "some_username",
             "00000000-0000-0000-0000-000000000000",
             "00000000-0000-0000-0000-000000000000",
             null));
 }
Exemplo n.º 2
0
 public void ThrowsForNullPassword()
 {
     Assert.Throws <ArgumentNullException>(
         () => TransactClient.CreateIncludingOAuth(
             1,
             "some_username",
             null,
             "00000000-0000-0000-0000-000000000000",
             "00000000-0000-0000-0000-000000000000",
             "00000000-0000-0000-0000-000000000000"));
 }
Exemplo n.º 3
0
            public void SetsUsername()
            {
                var client = TransactClient.CreateIncludingOAuth(
                    1,
                    "some_username",
                    "some_password",
                    "00000000-0000-0000-0000-000000000001",
                    "00000000-0000-0000-0000-000000000002",
                    "00000000-0000-0000-0000-000000000003");

                Assert.Equal("some_username", client.Configuration.Username);
            }