public async Task Null_Is_Returned_When_Entity_IsNot_Found()
            {
                // Arrange
                _mockCloudTable.Setup(s => s.ExecuteAsync(It.IsAny <TableOperation>())).ReturnsAsync((TableResult)null);

                var cacheManager = new TableStorageCacheManager(_mockCacheClient.Object, _mockConfigurationSettings.Object);

                // Act
                var result = await cacheManager.GetEntityAsync("partitionKey", "rowKey");

                // Assert
                Assert.That(result, Is.Null);
            }
            public async Task Result_Is_Returned_When_Entity_Is_Found()
            {
                // Arrange
                var expected = new OutcomeEntity
                {
                    FileType   = "docx",
                    FileStatus = "rebuilt",
                    RowKey     = "1234567"
                };

                _mockCloudTable.Setup(s => s.ExecuteAsync(It.IsAny <TableOperation>())).ReturnsAsync(new TableResult {
                    Result = expected
                });

                var cacheManager = new TableStorageCacheManager(_mockCacheClient.Object, _mockConfigurationSettings.Object);

                // Act
                var result = await cacheManager.GetEntityAsync("partitionKey", "rowKey");

                // Assert
                Assert.That(result.FileType, Is.EqualTo(expected.FileType));
                Assert.That(result.FileStatus, Is.EqualTo(expected.FileStatus));
                Assert.That(result.RowKey, Is.EqualTo(expected.RowKey));
            }