public void AddContextToAssemblyModel()
        {
            AssemblyModel.AddContext("ContextTest1", @"..\..\..\Test\ContextTest1");
            var ctx = AssemblyModel.ListContexts().Find(s => s.Name == "ContextTest1");

            Assert.AreEqual("ContextTest1", ctx.Name);
        }
 public IView Run()
 {
     return(new RootView()
     {
         Contexts = AssemblyModel.ListContexts()
     });
 }
        public void ListAllContextReturnsAllContextModels()
        {
            AssemblyModel.AddContext("ContextTest1", @"..\..\..\Test\ContextTest1");
            AssemblyModel.AddContext("ContextTest2", @"..\..\..\Test\ContextTest2");
            var ctxs = AssemblyModel.ListContexts();

            Assert.AreEqual(2, ctxs.Count);
            Assert.IsNotNull(ctxs.Find(s => s.Name == "ContextTest1"));
            Assert.IsNotNull(ctxs.Find(s => s.Name == "ContextTest2"));
        }