static void Main(string[] args)
        {
            var handler = new EmailCommandHandler("Email-End-Point");

            handler.Handle <SendEmailCommand>();


            Console.ReadKey();
        }
        public async Task Should_Save_Template()
        {
            var template = EmailCommandFaker.GenerateSaveTemplateCommand("test-email-ok").Generate();

            _templateRepository.Setup(s => s.Add(It.Is <Template>(m => !string.IsNullOrEmpty(m.Username))));
            _uow.Setup(s => s.Commit()).ReturnsAsync(true);

            var result = await _commandHandler.Handle(template, CancellationToken.None);

            _templateRepository.Verify(v => v.Exist(It.IsAny <string>()), Times.Once);

            result.Should().BeTrue();
        }