public void SavePersonalizationBlob_Shared() { PersonalizationService target = new PersonalizationService(); string path = PATH; string userName = null; byte[] dataBlob = GetBytes(SHARED_BLOB); target.SavePersonalizationBlob(path, userName, dataBlob); }
private async void UIElement_OnTapped(object sender, TappedRoutedEventArgs e) { var personalisation = new PersonalizationService(); if (personalisation.IsSupported) { await personalisation.SetWallpaperImageAsync("ms-appx:///Assets/Wallpaper.jpg", true); } }
public void GetUserPersonalizationBlob() { PersonalizationService target = new PersonalizationService(); string path = PATH; string userName = USERNAME; string expected = USER_BLOB; byte[] actual = target.GetUserPersonalizationBlob(path, userName); Assert.AreEqual(expected, GetString(actual)); }
public void GetSharedPersonalizationBlob() { PersonalizationService target = new PersonalizationService(); string path = PATH; string userName = null; string expected = SHARED_BLOB; byte[] actual = target.GetSharedPersonalizationBlob(path, userName); Assert.AreEqual(expected, GetString(actual)); }