public void Context()
        {
            _persistEmailTemplate();

            var queryHandler = new GetEmailTemplateQueryHandler(UnitOfWork);

            _result = queryHandler.Execute <EmailTemplateDto>(new GetEmailTemplateQuery {
                EmailTemplateId = _emailTemplate.Id
            });

            void _persistEmailTemplate()
            {
                var user = UserBuilder.New.Build();

                UnitOfWork.Save(user);
                _emailTemplate = EmailTemplateBuilder.New
                                 .WithInitialHtml("html")
                                 .WithName("name")
                                 .WithUserId(user.Id)
                                 .Build();
                var anotherEmailTemplate = EmailTemplateBuilder.New
                                           .WithInitialHtml("another html")
                                           .WithName("template name")
                                           .WithUserId(user.Id)
                                           .Build();

                UnitOfWork.Save(_emailTemplate);
                UnitOfWork.Save(anotherEmailTemplate);
            }
        }
 protected override void PersistenceQuery()
 {
     var query = new GetEmailTemplateQueryHandler();
     _result = query.Execute<EmailTemplateDto>(new GetEmailTemplateQuery {EmailTemplateId = _emailTemplate.Id});
 }