Class ApplicationAttribute
Selects the application under test for a test or class and, optionally, which registered client each
protocol uses. Bindings use Protocol:Client (for example Rest:Billing or
Web:Admin); unlisted protocols use the application's first registered client of that protocol.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class ApplicationAttribute : ProtoAttribute
- Inheritance
-
ApplicationAttribute
- Inherited Members
- Extension Methods
Constructors
ApplicationAttribute(string, params string[])
public ApplicationAttribute(string name, params string[] clients)
Parameters
Properties
Bindings
Gets the protocol-to-client bindings, keyed by protocol name.
public IReadOnlyDictionary<string, string> Bindings { get; }
Property Value
Name
Gets the application name.
public string Name { get; }
Property Value
Methods
BeforeTestAsync(ProtoExecutionContext)
Executed asynchronously before the decorated test or class tests execute.
public override Task BeforeTestAsync(ProtoExecutionContext context)
Parameters
contextProtoExecutionContext