public void Can_DeActivate_The_SmtpNotificationGatewayProvider()
        {
            //// Arrange
            // handled by setup

            //// Act
            MerchelloContext.Current.Gateways.Notification.DeactivateProvider(_provider);
            _provider = MerchelloContext.Current.Gateways.Notification.GetProviderByKey(_key, false) as SmtpNotificationGatewayProvider;

            //// Assert
            Assert.NotNull(_provider);
            Assert.IsFalse(_provider.Activated);
        }
        public override void FixtureSetup()
        {
            base.FixtureSetup();

            _provider = MerchelloContext.Gateways.Notification.GetProviderByKey(_key, false) as SmtpNotificationGatewayProvider;

            Assert.NotNull(_provider, "Provider was not resolved");

            if (!_provider.Activated)
            {
                MerchelloContext.Gateways.Notification.ActivateProvider(_provider);
            }
        }
Exemplo n.º 3
0
        public override void FixtureSetup()
        {
            base.FixtureSetup();

            _provider = MerchelloContext.Current.Gateways.Notification.GetProviderByKey(_key, false) as SmtpNotificationGatewayProvider;

            Assert.NotNull(_provider, "Provider was not resolved");

            GatewayProviderService.Saving += GatewayProviderServiceOnSaved;
        }