Example #1
0
        public async Task TestUpdateSubAccount()
        {
            const string newName = "new-test-name-async";
            var          updateSubAccountParams = new UpdateSubAccountParams(m_cloudId)
            {
                CloudName = newName
            };
            await AccountProvisioning.UpdateSubAccountAsync(updateSubAccountParams);

            var result = await AccountProvisioning.SubAccountAsync(m_cloudId);

            Assert.AreEqual(newName, result.CloudName);
        }
        public async Task TestUpdateSubAccount()
        {
            var newName = GetCloudName();
            var updateSubAccountParams = new UpdateSubAccountParams(m_cloudId1)
            {
                CloudName = newName
            };

            var updateResult = await AccountProvisioning.UpdateSubAccountAsync(updateSubAccountParams);

            Assert.AreEqual(HttpStatusCode.OK, updateResult.StatusCode, updateResult.Error?.Message);

            var result = await AccountProvisioning.SubAccountAsync(m_cloudId1);

            Assert.AreEqual(newName, result.CloudName);
        }
        public async Task TestGetSpecificSubAccount()
        {
            var result = await AccountProvisioning.SubAccountAsync(m_cloudId1);

            Assert.AreEqual(m_cloudId1, result.Id);
        }