public TestableMessageService() { AuthService = (MockAuthService = new Mock <AuthenticationService>()).Object; Config = (MockConfig = new Mock <IAppConfiguration>()).Object; MailSender = MockMailSender = new TestMailSender(); MockConfig.Setup(x => x.GalleryOwner).Returns(TestGalleryOwner); }
private TestableMessageService( AuthenticationService authenticationService, IGalleryConfigurationService configurationService) { configurationService.Current.GalleryOwner = TestGalleryOwner; configurationService.Current.GalleryNoReplyAddress = TestGalleryNoReplyAddress; Config = configurationService.Current; MailSender = MockMailSender = new TestMailSender(); AuthService = authenticationService; }