public void should_retrive_references_with_mathching_pattern()
        {
            // arrange
            var references = new List<Reference>
                                 {
                                     new Reference
                                         {
                                             Ref = "/head/master",
                                             Url = "url",
                                             Object = new Object { Sha = "sha" }
                                         }
                                 };
            _adapter.GetAllReferences().Returns(references);

            var trees = new Trees
                            {
                                Sha = "sha",
                                Url = "tree/url",
                                Tree = new List<Item>
                                           {
                                               new Item {Path = "/sub/index.html"},
                                               new Item {Path = "/sub1/index.html"},
                                               new Item {Path = "/bub/index.cshtml"}
                                           }
                            };
            _adapter.GetTrees("sha").Returns(trees);

            // act
            var treeReferences = _treeReferencesRetriever.ForPathContains(".html");

            // assert
            treeReferences.Count().Should().Be(2);
        }
        public void should_retrive_the_list_of_post()
        {
            // arrange
            var references = new List<Reference>
                                 {
                                     new Reference
                                         {
                                             Ref = "/head/master",
                                             Url = "url",
                                             Object = new Object { Sha = "sha" }
                                         }
                                 };
            _adapter.GetAllReferences().Returns(references);

            var trees = new Trees
                                 {
                                     Sha = "sha",
                                     Url = "tree/url",
                                     Tree = new List<Item>
                                                {
                                                    new Item {Path = "/sub/index.html"}
                                                }
                                 };
            _adapter.GetTrees("sha").Returns(trees);

            // act
            var treeReferences = _treeReferencesRetriever.ForAll();

            // assert
            treeReferences.Count().Should().Be(1);
        }