コード例 #1
0
        public void UserIsLoggedInAfterRegistering()
        {
            String username = "******";
            String password = "******";

            AccountRegistrationRequest request = new AccountRegistrationRequest()
            {
                Email    = "*****@*****.**",
                Password = password,
                Username = username,
            };

            AccountRegistrationResponse response = client.RegisterAccount(request);

            Assert.IsTrue(response.Token != null);
            Assert.IsTrue(response.User.Id != null);
            Assert.AreEqual(response.User.Username, username);

            AuthorizedHealthCheckResponse AuthResponse = client.AuthorizedHealthCheck(new AuthorizedHealthCheckRequest());

            Assert.IsTrue(AuthResponse != null);
        }