示例#1
0
        public void OneTimeSetUp()
        {
            _mockNotificationClientWrapper  = new Mock <INotificationClientWrapper>();
            _mockWelcomeTemplateEmailConfig = new Mock <IWelcomeTemplateEmailConfig>();


            _mockWelcomeTemplateEmailConfig.Setup(x => x.TemplateId).Returns(_templateId);

            _service = new WelcomeEmailService(_mockNotificationClientWrapper.Object, _mockWelcomeTemplateEmailConfig.Object);
        }
示例#2
0
 /// <inheritdoc />
 public UserService(IManageCoursesDbContext context, IWelcomeEmailService welcomeEmailService, IClock clock)
 {
     _context             = context;
     _welcomeEmailService = welcomeEmailService;
     _clock = clock;
 }