public async Task ContentType_without_parent_gets_provisioned() { var prov = new HarshContentType() { Id = _id, Name = _guid, Description = _guid, Group = Group }; ContentType ct = null; try { await prov.ProvisionAsync(Context); var output = LastObjectOutput <ContentType>(); ct = output.Object; Assert.True(output.ObjectAdded); Assert.NotNull(ct); ClientContext.Load( ct, c => c.Name, c => c.Description, c => c.Group, c => c.StringId ); await ClientContext.ExecuteQueryAsync(); Assert.Equal(_guid, ct.Name); Assert.Equal(_guid, ct.Description); Assert.Equal(Group, ct.Group); Assert.Equal(_id.ToString(), ct.StringId); } finally { if (ct != null) { ct.DeleteObject(); await ClientContext.ExecuteQueryAsync(); } } }
public override String ToString() { if (_result == null) { _result = Build(_entityTypeInfo); } return(_result.ToString()); }