private void ConfigureLifetime() { if (_setup != null) { _log.Debug("Registering setup: {0}", _setup.GetType().Name); _engine.RegisterSetupAction(info => _setup.Setup(_context)); } if (_teardown != null) { _log.Debug("Registering teardown: {0}", _teardown.GetType().Name); _engine.RegisterTeardownAction(info => _teardown.Teardown(_context, info)); } }