public void CanCreateEntities() { using (var ctx = TestCommon.CreateClientContext()) { var template = new ProvisioningTemplate(); template = new ObjectCustomActions().CreateEntities(ctx.Web, template, null); Assert.IsInstanceOfType(template.CustomActions, typeof(CustomActions)); } }
public void CanCreateEntities() { using (var ctx = TestCommon.CreateClientContext()) { // Load the base template which will be used for the comparison work var creationInfo = new ProvisioningTemplateCreationInformation(ctx.Web) { BaseTemplate = ctx.Web.GetBaseTemplate() }; var template = new ProvisioningTemplate(); template = new ObjectCustomActions().ExtractObjects(ctx.Web, template, creationInfo); Assert.IsInstanceOfType(template.CustomActions, typeof(CustomActions)); } }