Table of Contents

Class DriverMethodAttribute

Namespace
TinyBDD.Extensions.FileBased.Core
Assembly
TinyBDD.Extensions.FileBased.dll

Marks a method in an IApplicationDriver implementation as executable from file-based scenarios.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class DriverMethodAttribute : Attribute
Inheritance
DriverMethodAttribute
Inherited Members

Examples

[DriverMethod("register user with email {email}")]
public async Task RegisterUser(string email)
{
    // Implementation
}

Remarks

The step pattern is used to match against steps defined in scenario files. Patterns are case-insensitive and support parameter placeholders.

Constructors

DriverMethodAttribute(string)

Initializes a new instance of DriverMethodAttribute.

public DriverMethodAttribute(string stepPattern)

Parameters

stepPattern string

The step pattern to match.

Properties

StepPattern

The step pattern to match. Use {paramName} for parameters.

public string StepPattern { get; }

Property Value

string