public void ListAllContextNamespacesContextModel()
        {
            AssemblyModel.AddContext("ContextTest1", @"..\..\..\Test\ContextTest1");
            var ns = AssemblyModel.ListNamespaces("ContextTest1");

            Assert.AreEqual(16, ns.Count);
        }
Beispiel #2
0
        public IView Run()
        {
            var ctx        = AssemblyModel.GetContext(Context);
            var namespaces = AssemblyModel.ListNamespaces(Context);

            var view = new ContextNamespaceView
            {
                Context    = ctx,
                Namespaces = namespaces
            };

            return(view);
        }
        public IView Run()
        {
            var ctx        = AssemblyModel.GetContext(Context);
            var namespaces = AssemblyModel.ListNamespaces(Context);

            var view = new ContextView
            {
                Context    = ctx,
                Assemblies = ctx.Assemblies.Values.ToList(),
                Namespaces = namespaces
            };

            return(view);
        }