Ejemplo n.º 1
0
        public AccountConfirmationRequestServiceTest()
        {
            _integrationEventBusMock = new Mock <IIntegrationEventBus>();
            var optionsMock = new Mock <IOptions <RivaWebApplicationSetting> >();
            var rivaWebApplicationSetting = new RivaWebApplicationSetting
            {
                RivaWebRegistrationConfirmationUrl = "http://RivaWebRegistrationConfirmationUrl.com"
            };

            optionsMock.SetupGet(x => x.Value).Returns(rivaWebApplicationSetting);
            _service = new AccountConfirmationRequestService(_integrationEventBusMock.Object, optionsMock.Object);
        }
Ejemplo n.º 2
0
        public PasswordResetTokenRequestServiceTest()
        {
            _integrationEventBusMock = new Mock <IIntegrationEventBus>();
            var optionsMock = new Mock <IOptions <RivaWebApplicationSetting> >();
            var rivaWebApplicationSetting = new RivaWebApplicationSetting
            {
                RivaWebResetPasswordUrl = "http://RivaWebResetPasswordUrl.com"
            };

            optionsMock.SetupGet(x => x.Value).Returns(rivaWebApplicationSetting);
            _service = new PasswordResetTokenRequestService(_integrationEventBusMock.Object, optionsMock.Object);
        }