예제 #1
0
        public async Task GetAppsBatch_Forbidden()
        {
            var ids             = new[] { 403 };
            var getAppsResponse = await _apiClient.GetAppsAsync(ids);

            AssertHelper.AssertError(getAppsResponse, HttpStatusCode.Forbidden);
        }
예제 #2
0
        public async Task GetAppsBatch_Unauthorized()
        {
            var ids             = new[] { 401 };
            var getAppsResponse = await _apiClient.GetAppsAsync(ids);

            AssertHelper.AssertError(getAppsResponse, HttpStatusCode.Unauthorized);
        }
예제 #3
0
        public async Task GetAppById_Forbidden()
        {
            var appResponse = await _apiClient.GetAppAsync(403);

            AssertHelper.AssertError(appResponse, HttpStatusCode.Forbidden, true);
        }
예제 #4
0
        public async Task GetAppById_NotFound()
        {
            var appResponse = await _apiClient.GetAppAsync(404);

            AssertHelper.AssertError(appResponse, HttpStatusCode.NotFound, true);
        }
예제 #5
0
        public async Task GetAppById_Unauthorized()
        {
            var appResponse = await _apiClient.GetAppAsync(401);

            AssertHelper.AssertError(appResponse, HttpStatusCode.Unauthorized);
        }