예제 #1
0
        public void ModulesGraph_Lookup()
        {
            var result = _g.GetModulesBeginsWith("B");

            Assert.That(result.Count, Is.EqualTo(3));

            result = _g.GetModulesBeginsWith("b");
            Assert.That(result.Count, Is.EqualTo(3));
        }
예제 #2
0
        public IList <ViewModels.Module> Get(string name)
        {
            var items = _graph.GetModulesBeginsWith(name);

            return(Mapper.Map <List <ViewModels.Module> >(items));
        }