public EmailMessengerFactory(IPostman postman) { if (postman == null) { throw new ArgumentNullException("postman"); } this.postman = postman; }
public EmailMessenger(IPostman postman, IMailTemplate mailTemplate) { if (postman == null) { throw new ArgumentNullException("postman"); } if (mailTemplate == null) { throw new ArgumentNullException("mailTemplate"); } this.postman = postman; this.mailTemplate = mailTemplate; }
public Worker(string name, IPostman mediator) { this.name = name; this.mediator = mediator; lastMessage = new string[2]; }
public SessionControllerBuilder WithPostman(IPostman newPostman) { postman = newPostman; return this; }