-
Notifications
You must be signed in to change notification settings - Fork 39
/
UsingAgentTesterServer.cs
22 lines (20 loc) · 1.06 KB
/
UsingAgentTesterServer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef
using CoreEx;
using System;
using UnitTestEx.NUnit;
namespace Beef.Test.NUnit
{
/// <summary>
/// Provides a wrapper for the <see cref="UsingApiTester{TEntryPoint}"/> to support backwards compatibility to earlier <i>Beef</i> versions.
/// </summary>
/// <typeparam name="TEntryPoint">>The API startup <see cref="Type"/>.</typeparam>
/// <remarks>It is <b>recommended</b> that usage is upgraded to the new as this will eventually be deprecated.
/// <para>Breaking change is that the <see cref="ExecutionContext.UserName"/> for the <see cref="AgentTester"/> reverts back to previous user post test execution where overridden.</para></remarks>
public abstract class UsingAgentTesterServer<TEntryPoint> : UnitTestEx.NUnit.UsingApiTester<TEntryPoint> where TEntryPoint : class
{
/// <summary>
/// Gets the <see cref="AgentTester"/>.
/// </summary>
public AgentTester<TEntryPoint> AgentTester => new(this.ApiTester);
}
}