public void FileStrategyFinder()
        {
            var template = new MessageTemplate
            {
                Name        = "fred",
                CultureCode = "en",
                From        = "*****@*****.**",
                FromName    = "Test Name",
                Subject     = "Subject",
                Text        = "Hello world"
            };

            var dataDirectory = Path.Combine(TestContext.CurrentContext.TestDirectory, "App_Data/MailTemplates");
            var strategy      = new DirectoryTemplateStrategy(dataDirectory);
            var repository    = new FileMessageTemplateRepository(strategy);

            var candidate = repository.Find("fred", new CultureInfo("en-US")) as MessageTemplate;

            Check(template, candidate);
        }
        public void SaveTemplate()
        {
            var template = new MessageTemplate
            {
                Name        = "fred",
                CultureCode = "en-GB",
                From        = "*****@*****.**",
                FromName    = "Test Name",
                Subject     = "Subject",
                Text        = "Hello world"
            };

            var strategy   = new FilenameTemplateStrategy("App_Data/MailTemplates");
            var repository = new FileMessageTemplateRepository(strategy);

            repository.Save(template);

            var candidate = repository.Find("fred", new CultureInfo("en-GB")) as MessageTemplate;

            Check(template, candidate);
        }