/// <summary> /// Set custom locations dirty. This will cause them to be reloaded /// from the cache before the next test case is executed. /// </summary> /// <remarks> /// Call this method only if you change the state of a singleton /// object, potentially affecting future tests. /// </remarks> /// <param name="locations">Locations </param> protected void SetDirty(string[] locations) { String keyString = ContextKeyString(locations); IConfigurableApplicationContext ctx = (IConfigurableApplicationContext)contextKeyToContextMap[keyString]; contextKeyToContextMap.Remove(keyString); if (ctx != null) { ctx.Dispose(); } }
public override void Dispose() { applicationContext.Dispose(); }