public void ModifyTemplateOk()
        {
            TemplatesOperationMockService mock           = new TemplatesOperationMockService();
            FileOperationMockService      mockFile       = new FileOperationMockService();
            TemplateController            controllerMock = new TemplateController(mock, mockFile);
            int countOld = mock.GetTemplates().Count;
            var added    = controllerMock.LoadTemplate("TemplateModified", mock.GetTemplates().FirstOrDefault().TemplateID, null);

            Assert.True(mock.GetTemplate("TemplateModified") != null);
        }
        public void ModifyTemplateOk()
        {
            TemplatesOperationMockService mock = new TemplatesOperationMockService();
            Template template = new Template()
            {
                TemplateID = mock.GetTemplates().FirstOrDefault().TemplateID,
                Name       = "Modify Template"
            };
            bool added = mock.LoadTemplate(template, false);

            Assert.True(mock.GetTemplate(template.Name) != null);
        }
        public void GetTemplateById()
        {
            TemplatesOperationMockService mock = new TemplatesOperationMockService();

            Assert.True(mock.GetTemplate(mock.GetTemplates().FirstOrDefault().TemplateID) != null);
        }
        public void GetTemplateByName()
        {
            TemplatesOperationMockService mock = new TemplatesOperationMockService();

            Assert.True(mock.GetTemplate("Template1") != null);
        }