public IRegistration Then <TImplementingType>() where TImplementingType : TBaseService
        {
            var registration = new ConditionalRegistration <TBaseService>();

            registration.SetActivationRule(this);
            registration.MapsTo <TImplementingType>();

            return(registration);
        }
Example #2
0
        public List <IRegistration> Then <TImplementingType>() where TImplementingType : TBaseService
        {
            var list = new List <IRegistration>();

            var registration = new ConditionalRegistration <TBaseService>();

            registration.SetActivationRule(this);
            registration.MapsTo <TImplementingType>();

            list.Add(registration);
            list.Add(Given <TCondition> .Then <TCondition>());

            return(list);
        }