예제 #1
0
        public void SetUp()
        {
            _classUnderTest  = new GovNotifyNotificationsGateway();
            _govNotifyUrl    = Environment.GetEnvironmentVariable("GOV_NOTIFY_URL");
            _govNotifyApiKey = Environment.GetEnvironmentVariable("GOV_NOTIFY_API_KEY");

            SetupEnvironmentVariables("http://localhost:3000/", "cafe");

            _simulator = new FluentSimulator("http://localhost:3000/");
            _simulator.Post("/v2/notifications/email").Responds("{}");
            _simulator.Start();
        }
예제 #2
0
 public AuthenticateUserUseCase(IOneTimeAuthenticationTokenCreator authenticationTokenCreator,
                                IOneTimeLinkNotifier notifier)
 {
     _authenticationTokenCreator = authenticationTokenCreator;
     _oneTimeLinkNotifier        = notifier;
 }