public async Task GrabNzbFromCartAsync_Returns_Not_Found_With_Invalid_Entry() { var req = TestHelper.CreateHttpRequest("https://nzb.mtighe.dev/api/cart/nzb/123"); _cartTable.SetupOperationToFail(TableOperationType.Retrieve); _authService.Setup(s => s.IsAuthenticated(req)).ReturnsAsync(true); var result = await _function.GrabNzbFromCartAsync(req, _cartTable.Object, _log.Object, "123"); Assert.IsType <NotFoundResult>(result); }