Skip to content

Instantly share code, notes, and snippets.

@igorkulman
Last active August 29, 2015 13:57
Show Gist options
  • Save igorkulman/9572002 to your computer and use it in GitHub Desktop.
Save igorkulman/9572002 to your computer and use it in GitHub Desktop.
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