コード例 #1
0
 public void GetAllSubscriptions_MockApiTest()
 {
     Task.Run(async() =>
     {
         var result = await _fixture.GetAllSubscriptions(true);
         Assert.NotNull(result);
     }).GetAwaiter().GetResult();
 }
コード例 #2
0
        public async Task <List <MicrosoftSubscription> > GetAllSubscriptions([FromQuery] bool mock = false)
        {
            var result = await service.GetAllSubscriptions(mock);

            return(result);
        }