Inheritance: ILazyComponentLoader
Beispiel #1
0
        public void Loaders_only_triggered_when_resolving()
        {
            var loader = new ABLoaderWithGuardClause();

            Container.Register(Component.For <ILazyComponentLoader>().Instance(loader),
                               Component.For <B>());

            loader.CanLoadNow = true;

            Container.Resolve <B>();
        }
Beispiel #2
0
		public void Loaders_only_triggered_when_resolving()
		{
			var loader = new ABLoaderWithGuardClause();
			Container.Register(Component.For<ILazyComponentLoader>().Instance(loader),
			                   Component.For<B>());

			loader.CanLoadNow = true;

			Container.Resolve<B>();
		}