public void AccountsApi_Get_Accounts_List_Success()
        {
            ApiResponse <AccountDirectoriesRoot> response = accountsApi.GetAccountsWithHttpInfo(CommonParameters.DefaultLookupDirectory);

            Assert.IsTrue(response.StatusCode == HttpStatusCode.OK, "Response should be 200 - OK");
            Assert.IsTrue(response.Data != null, "Response data should not be null");
            Assert.IsTrue(response.Data.GetType() == typeof(AccountDirectoriesRoot), "Response Data should be of AccountDirectoriesRoot type");
            Assert.IsTrue(response.Data.Data.GetType() == typeof(AccountDirectories), "Response Data should be of AccountDirectories type");
        }
Ejemplo n.º 2
0
        public void AccountsApi_Get_Accounts_List_Success()
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

            ApiResponse <AccountDirectories> response = _accountsApi.GetAccountsWithHttpInfo(CommonParameters.DefaultLookupDirectory);

            Assert.IsTrue(response.StatusCode == HttpStatusCode.OK, "Response should be 200 - OK");
            Assert.IsTrue(response.Data != null, "Response data should not be null");
            Assert.IsTrue(response.Data.GetType() == typeof(AccountDirectories), "Response Data should be of AccountDirectories type");
        }