public void Context()
        {
            _emailTemplate = MockRepository.GenerateMock<EmailTemplate>();

            const int emailTemplateId = 23;
            var emailTemplateRepository = MockRepository.GenerateStub<IRepository<EmailTemplate>>();
            emailTemplateRepository.Stub(a => a.GetById(emailTemplateId)).Return(_emailTemplate);

            _emailTemplateDto = new EmailTemplateDto
                                    {
                                        EmailTemplateId = emailTemplateId,
                                    };
            var command = new SaveEmailTemplateCommand
                              {
                                  EmailTemplate = _emailTemplateDto,
                              };
            var handler = new SaveEmailTemplateCommandHandler(emailTemplateRepository);
            handler.Execute(command);
        }
 public void Save(SaveEmailTemplateCommand command)
 {
     _commandExecutor.Execute(command);
 }