Last active
August 29, 2015 13:57
-
-
Save igorkulman/9572002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void SetupMockIAP() | |
{ | |
MockIAP.Init(); | |
MockIAP.RunInMockMode(true); | |
MockIAP.SetListingInformation(1, "en-us", "A description", "1", "TestApp"); | |
// Add some more items manually. | |
ProductListing p = new ProductListing | |
{ | |
Name = "img.2", | |
ImageUri = new Uri("/Res/Image/2.jpg", UriKind.Relative), | |
ProductId = "img.2", | |
ProductType = Windows.ApplicationModel.Store.ProductType.Durable, | |
Keywords = new string[] { "image" }, | |
Description = "An image", | |
FormattedPrice = "1.0", | |
Tag = string.Empty | |
}; | |
MockIAP.AddProductListing("img.2", p); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment