<PackageReference Include="Relativity.Server.Testing.Framework.Api.SDK" Version="5000.1.0" />

SessionBasedFixture

public abstract class SessionBasedFixture
Represents the base fixture that manages [TestSession](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Session.TestSession.html) for fixture and test levels.
protected static string CurrentTestName { get; }

Gets the name of the current test/fixture.

protected static TestSession Session { get; }

Gets the current session. During fixture set up or tear down returns session of fixture; otherwise returns session of test.

protected virtual IRelativityFacade Facade { get; }

Gets the current [IRelativityFacade](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.IRelativityFacade.html) instance.

protected ILogService Log { get; }

Gets the [ILogService](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Logging.ILogService.html).

protected SessionBasedFixture()

protected static string GetVersionRange(MemberInfo member)

protected void Arrange(Action action)

Executes the specified arrange action. If action fails with an exception, wraps the exception with TestArrangeException.

protected void Arrange(Action<TestArrangementDomain> action)

Executes the specified arrange action using TestArrangementDomain. If action fails with an exception, wraps the exception with TestArrangeException.

Executes the specified workspace arrange action using TestArrangementDomain<T> for working workspace. If action fails with an exception, wraps the exception with TestArrangeException.

protected void ArrangeWorkspace(Workspace workspace, Action<TestArrangementDomain<Workspace>> action)

Executes the specified workspace arrange action using TestArrangementDomain<T> for the specified workspace. If action fails with an exception, wraps the exception with TestArrangeException.

protected void CheckVersionRangeForFixture()

protected void CheckVersionRangeForTest()

protected bool IsVersionComparable(string version)

protected virtual void OnSetUpFixture()

Called when set up of fixture executes.

protected virtual void OnSetUpTest()

Called when set up of test executes.

protected virtual void OnTearDownFixture()

Called when tear down of fixture executes.

protected virtual void OnTearDownTest()

Called when tear down of test executes.

public void SetUpFixture()

Sets up fixture.

public void SetUpTest()

Sets up test.

public void TearDownFixture()

Tears down fixture.

public void TearDownTest()

Tears down test.