public void GetSnippetFiles_WhenNoSnippetFiles_ReturnsEmptyCollection()
        {
            IDataGateway gateway = Substitute.For <IDataGateway>();

            var repository   = new SnippetFileRepository(gateway);
            var snippetFiles = repository.GetSnippetFiles();

            Assert.AreEqual(new List <SnippetFile>(), snippetFiles);
        }
        public void GetSnippetFiles_WhenSnippetFilesAreAvailable_ReturnsSnippetFiles()
        {
            IDataGateway gateway = Substitute.For <IDataGateway>();

            gateway.GetAllSnippetFiles().Returns(new List <SnippetFile>
            {
                new SnippetFile()
            });

            var repository   = new SnippetFileRepository(gateway);
            var snippetFiles = repository.GetSnippetFiles();

            Assert.AreEqual(1, snippetFiles.Count());
        }