public void AddAndContains() { //Arrange SPWebAppPropertyBag.ClearCache(); MSPPersistedObject webPO; WebAppSettingStore wss; var webApp = new BSPConfiguredWebApp(); wss = new WebAppSettingStore(); webPO = new MSPPersistedObject((SPPersistedObject)webApp.Instance); webPO.GetChildString <WebAppSettingStore>( (s) => { return(wss); }); var wssPO = new MSPPersistedObject(wss); wssPO.Update = () => { }; string key = "key"; string value = "value"; var target = new SPWebAppPropertyBag(webApp); IPropertyBagTest.AddContains(target, key, value); }
public void AddAndContains() { MSPWeb web = this.SetupWeb(); string key = "key"; string value = "value"; var target = new SPWebPropertyBag(web); IPropertyBagTest.AddContains(target, key, value); }
public void AddAndContains() { MSPSite site = SetupSite(); string key = "key"; string value = "value"; var target = new SPSitePropertyBag(site); IPropertyBagTest.AddContains(target, key, value); }
public void AddAndContains() { SPFarmPropertyBag.ClearCache(); var f = new BSPConfiguredFarm(); var fssPO = new MSPPersistedObject(f.SettingStore); fssPO.Update = () => { }; string key = "key"; string value = "value"; var target = new SPFarmPropertyBag(); IPropertyBagTest.AddContains(target, key, value); }