示例#1
0
        public async Task Object_DescribeLayout_IsNotNull()
        {
            var accountsLayout = await _client.DescribeLayoutAsync <dynamic>("Account");

            Assert.IsNotNull(accountsLayout);

            string recordTypeId = accountsLayout.recordTypeMappings[0].recordTypeId;

            Assert.IsNotNull(recordTypeId);

            var accountsLayoutForRecordTypeId = await _client.DescribeLayoutAsync <dynamic>("Account", recordTypeId);

            Assert.IsNotNull(accountsLayoutForRecordTypeId);
        }