public override DefinitionBase GenerateRandomDefinition(Action <DefinitionBase> action) { return(WithEmptyDefinition(def => { def.AllowPrint = Rnd.Bool(); def.AllowScript = Rnd.Bool(); def.AllowWriteCopy = Rnd.Bool(); def.DisableDocumentBrowserView = Rnd.Bool(); def.DocumentAccessExpireDays = Rnd.Int(300); def.DocumentLibraryProtectionExpireDate = Rnd.Date(); def.EnableDocumentAccessExpire = Rnd.Bool(); def.EnableDocumentBrowserPublishingView = Rnd.Bool(); def.EnableGroupProtection = Rnd.Bool(); def.EnableLicenseCacheExpire = Rnd.Bool(); def.GroupName = Rnd.UserEmail(); def.LicenseCacheExpireDays = Rnd.Int(255); def.PolicyDescription = Rnd.String(); def.PolicyTitle = Rnd.String(); })); }