Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var handler = new EmailCommandHandler("Email-End-Point");

            handler.Handle <SendEmailCommand>();


            Console.ReadKey();
        }
 public EmailCommandHandlerTests()
 {
     _faker              = new Faker();
     _uow                = new Mock <IUnitOfWork>();
     _mediator           = new Mock <IMediatorHandler>();
     _notifications      = new Mock <DomainNotificationHandler>();
     _templateRepository = new Mock <ITemplateRepository>();
     _emailRepository    = new Mock <IEmailRepository>();
     _commandHandler     = new EmailCommandHandler(_uow.Object, _mediator.Object, _notifications.Object, _templateRepository.Object, _emailRepository.Object);
 }
 public EmailCommandHandlerTests()
 {
     _faker              = new Faker();
     _tokenSource        = new CancellationTokenSource();
     _uow                = new Mock <ISsoUnitOfWork>();
     _mediator           = new Mock <IMediatorHandler>();
     _notifications      = new Mock <DomainNotificationHandler>();
     _templateRepository = new Mock <ITemplateRepository>();
     _emailRepository    = new Mock <IEmailRepository>();
     _systemUser         = new Mock <ISystemUser>();
     _commandHandler     = new EmailCommandHandler(_uow.Object, _mediator.Object, _notifications.Object, _templateRepository.Object, _emailRepository.Object);
 }