Exemple #1
0
        public AspxPageInjector(RetrIocConfiguration cfg)
        {
            if (cfg == null)
            {
                throw new ArgumentNullException("cfg");
            }

            _cfg          = cfg;
            _injectionMap = new InjectionMap();
        }
Exemple #2
0
        public void Ctor_GivenConfig_Constructs()
        {
            var instance = new RetrIocConfiguration(new ActivatorContainer());

            Assert.That(instance, Is.Not.Null);
        }
Exemple #3
0
 public static void ConfigureWith(RetrIocConfiguration config)
 {
     ConfigVerifier.AssertModuleExists(HttpContext.Current.ApplicationInstance);
     _aspxPageInjector = new AspxPageInjector(config);
 }
 public void SetUp()
 {
     _cfg      = new RetrIocConfiguration(new FakeContainer());
     _module   = new AspxPageInjector(_cfg);
     _somePage = new TestPage();
 }