public async Task GetAsync_CodeFileEntityDoesNotExist_ReturnsNull()
        {
            // Arrange
            _codeFileTable
            .ExecuteAsync(Arg.Any <TableOperation>())
            .Returns(new TableResult {
                Result = null
            });

            var codeFileRepository = new CodeFileRepository(_codeFileTable);

            // Act
            var actualResult = await codeFileRepository.GetAsync(TestFilePath);

            // Assert
            Assert.AreEqual(null, actualResult);
        }
        public async Task GetAsync_CodeFileEntityIsNotArchived_ReturnsCorrectCodeFile()
        {
            // Arrange
            _codeFileTable
            .ExecuteAsync(Arg.Any <TableOperation>())
            .Returns(new TableResult {
                Result = new CodeFileEntity {
                    IsArchived    = false,
                    CodeFragments = @"[{
                          ""Identifier"":""test_identifier"",
                          ""Content"":""test content"",
                          ""Language"":""c_"",
                          ""Platform"":""_net"",
                          ""Codename"":""test_identifier_net""
                        }]"
                }
            });

            var codeFileRepository = new CodeFileRepository(_codeFileTable);

            var expectedCodeFragment = new CodeFragment
            {
                Identifier = "test_identifier",
                Content    = "test content",
                Language   = "c_",
                Platform   = "_net",
            };

            var expectedResult = new CodeFile {
                FilePath      = TestFilePath,
                CodeFragments = new List <CodeFragment> {
                    expectedCodeFragment
                }
            };

            // Act
            var actualResult = await codeFileRepository.GetAsync(TestFilePath);

            // Assert
            Assert.That(actualResult, Is.EqualTo(expectedResult).UsingCodeFileComparer());
        }