public async Task Text_Exception_ApiError()
        {
            // Arrange
            var context = new TestCaseContext(AssetType.Text, Result.ApiError);
            var sut     = new AssetsController(
                context.Logger,
                context.SessionManager);

            // Act
            var actionResult = await sut.Text(
                context.Session.Id,
                ApiRequest <GetAssetRequest> .Make(new GetAssetRequest {
                Key = context.AssetKey
            }),
                CancellationToken.None);

            // Assert
            Assert.NotNull(actionResult);
            var objectResult = actionResult.Result as ObjectResult;

            Assert.NotNull(objectResult);
            Assert.Equal(500, objectResult.StatusCode);
            var result = objectResult.Value as ApiResponse <TextAssetResponse>;

            Assert.NotNull(result);
            Assert.False(result.Success);
            Assert.NotNull(result.Error);
            Assert.Null(result.Payload);
        }