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; }
public ResettableLifetimeManager(LifetimeResetter lifetimeResetter) { lifetimeResetter.OnReset += (o, args) => instance = null; }
protected BaseTest() { Resetter = new LifetimeResetter(); Container = new UnityContainer(); }