Exemple #1
0
 public UnityContainerTestBase()
 {
     Resetter  = new LifetimeResetter();
     Container = new UnityContainer();
     RegisterPerTestSetup(() =>
     {
         Resetter.Reset();
     });
 }
 protected override void CreateContainer()
 {
     Restter   = new LifetimeResetter();
     Container = new UnityContainer();
 }
 public ResettableLifetimeManager(LifetimeResetter lifetimeResetter)
 {
     lifetimeResetter.OnReset += () => RemoveValue(null);
     LifetimeResetter          = lifetimeResetter;
 }
Exemple #4
0
 public ResettableLifetimeManager(LifetimeResetter lifetimeResetter)
 {
     lifetimeResetter.OnReset += (o, args) => instance = null;
 }
Exemple #5
0
 protected BaseTest()
 {
     Resetter  = new LifetimeResetter();
     Container = new UnityContainer();
 }