public void GetAllTemplateTest()
        {
            TemplateRepositories templateRepositories = new TemplateRepositories();
            List <Template>      templates            = templateRepositories.GetAllTemplate();

            foreach (Template a in templates)
            {
            }
            Assert.Pass();
            //TemplateRepositories templateRepositories = new TemplateRepositories();
            //List<Template> templates = templateRepositories.GetAllTemplate();
            //Assert.IsTrue(templates.Count>=0);
            //string a = ConfigurationManager.AppSettings["MongoDatabase"];
            //Console.Write("======================" + a);
            //Assert.AreEqual("eChecklist", a);
        }
        public void CreateTemplateTest()
        {
            TemplateRepositories templateRepositories = new TemplateRepositories();
            Template             template             = new Template();
            Template             templatechildren     = new Template();
            List <Template>      templates            = new List <Template>();

            templatechildren.Name = "children";
            template.Name         = "father";
            templates.Add(templatechildren);
            template.Children = templates;

            bool result = templateRepositories.CreateTemplate(template);

            Assert.AreEqual(true, result);
        }