O'Reilly logo

Learning Windows 8 Game Development by Michael Quandt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing with the simulator

Much of what we have looked at uses the CurrentApp class, which connects to the associated Windows Store account to process the transactions. This requires that any IAP products exist in the dashboard, and really gets in the way of any sort of testing before you submit your game. To get around this, the CurrentAppSimulator class allows us to test the different scenarios to ensure that our trial mode and the IAP code work fine. The simulator also allows you to test without even creating the app in the store dashboard, instead using a local XML file that describes the game and any IAP products that can be sold to populate the different listings and license details.

To get started with this, we need to replace all instances ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required