Пример #1
0
        public async Task <MicrosoftSubscription> ResolvePurchase([FromQuery] string mktplaceToken)
        {
            var p = await service.ResolvePurchase(mktplaceToken);

            var subsription = await service.GetSubscription(p.SubscriptionId);

            return(subsription);
        }
 public void GetSubscription_MockApiTest()
 {
     Task.Run(async() =>
     {
         // mock subscription id: 37f9dea2-4345-438f-b0bd-03d40d28c7e0
         var result = await _fixture.GetSubscription("37f9dea2-4345-438f-b0bd-03d40d28c7e0");
         Assert.NotNull(result);
     }).GetAwaiter().GetResult();
 }