public void Cleanup() { ScenarioContext.Current.TryGetValue("resourceModel", out IResourceModel resourceModel); if (resourceModel != null) { environmentModel.ResourceRepository.DeleteResource(resourceModel); environmentModel.ResourceRepository.DeleteResourceFromWorkspace(resourceModel); } declaredDependency?.Dispose(); }
public void Cleanup() => _containerOps?.Dispose();
public void DisposeContainer() => _containerOps?.Dispose();
public static void CleanupContainer() => _containerOps?.Dispose();
public void CleanUp() { CleanupForTimeOutSpecs(); _containerOps?.Dispose(); }
public static void StopRemoteContainer() => _containerOps?.Dispose();
public void MyTestCleanup() => _dependency.Dispose();