static ActivityTranslators()
 {
     _descriptionTemplate = TemplateReader.ReadTemplate("template-description.xml");
 }
        private void CreateExpectedTemplate()
        {
            try
            {
                var templateExpected = new TemplateModel();

                for (int activityCount = 0; activityCount < _activitiesInAssembly.Count; activityCount++)
                {
                    for (int typeCount = 0; typeCount < _activitiesInAssembly[activityCount].DeclarationTypes.Count; typeCount++)
                    {
                        if (templateExpected.Data.Count(y => y.ActivityType ==
                            _activitiesInAssembly[activityCount].DeclarationTypes[typeCount]) == 0)
                        {
                            templateExpected.Data.Add(new TemplateRowModel
                            {
                                ActivityType = _activitiesInAssembly[activityCount].DeclarationTypes[typeCount],
                                Description = "Sample desc"
                            });
                        }
                    }
                }

                string template = Serializer.Serialize<TemplateModel>(templateExpected, Encoding.UTF8);
                string path = Path.Combine(_assemblyResolver.BaseDirectory, "expected-template.xml");
                File.WriteAllText(path, template);

                SendMessage("Expected template built: " + path, EventType.Output);
            }
            catch
            {
            }
        }