Exemple #1
0
        public void activate_should_attach_the_service_locator_to_the_subject()
        {
            var services = new InMemoryServiceLocator();

            var activator = new ServiceLocatorTagRequestActivator(services);

            var subject = new SubjectThatIsServiceAware();

            activator.Activate(subject);

            subject.Services.ShouldBeTheSameAs(services);
        }
        public void activate_should_attach_the_service_locator_to_the_subject()
        {
            var services = new InMemoryServiceLocator();

            var activator = new ServiceLocatorTagRequestActivator(services);

            var subject = new SubjectThatIsServiceAware();

            activator.Activate(subject);

            subject.Services.ShouldBeTheSameAs(services);
        }