public void TestGetTemplates()
        {
            var service = new TemplatesService(new TemplatesStubDao());
            var actual  = service.GetTemplates();

            Assert.NotNull(actual);
        }
        public void TestUpdateTemplate_Succesful_Update()
        {
            var service       = new TemplatesService(new TemplatesStubDao());
            var stubTemplates = service.GetTemplates();
            var actual        = stubTemplates[0];
            var expected      = new Template {
                Id = actual.Id, Name = "Updated name"
            };

            service.UpdateTemplate(expected);

            Assert.Equal(expected.Name, actual.Name);
        }
        private List <GCTemplate> GetTemplates(string projectId)
        {
            TemplatesEntity templates = TemplatesService.GetTemplates(projectId);

            return(templates.Data);
        }