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); }
/// <inheritdoc /> public UserService(IManageCoursesDbContext context, IWelcomeEmailService welcomeEmailService, IClock clock) { _context = context; _welcomeEmailService = welcomeEmailService; _clock = clock; }