atata-framework / atata

C#/.NET test automation framework for web
https://atata.io
Apache License 2.0
490 stars 80 forks source link

Add `SetupAsync` and `StepAsync` methods to `Report<TOwner>` #837

Closed YevgeniyShunevych closed 6 months ago

YevgeniyShunevych commented 6 months ago

In addition to Setup and Step methods of Report<TOwner> new async method versions are added:

public Task SetupAsync(string message, Func<TOwner, Task> function);

public Task<TResult> SetupAsync<TResult>(string message, Func<TOwner, Task<TResult>> function);

public Task StepAsync(string message, Func<TOwner, Task> function);

public Task<TResult> StepAsync<TResult>(string message, Func<TOwner, Task<TResult>> function);