Method Given

Namespace
BunsenBurner
Assembly
BunsenBurner.dll

Given<TData>(Func<Task<TData>>)

Given the scenario data

public static TestBuilder<GivenWhenThenSyntax>.Arranged<TData> Given<TData>(Func<Task<TData>> fn)

Parameters

fn Func<Task<TData>>

async function returning scenario data

Returns

TestBuilder<GivenWhenThenSyntax>.Arranged<TData>

scenario with the given data

Type Parameters

TData

data required to when the scenario is run

Given<TData>(Func<TData>)

Given the scenario data

public static TestBuilder<GivenWhenThenSyntax>.Arranged<TData> Given<TData>(Func<TData> fn)

Parameters

fn Func<TData>

function returning scenario data

Returns

TestBuilder<GivenWhenThenSyntax>.Arranged<TData>

scenario with the given data

Type Parameters

TData

data required to when the scenario is run

Given<TData>(TData)

Given the scenario data

public static TestBuilder<GivenWhenThenSyntax>.Arranged<TData> Given<TData>(this TData data)

Parameters

data TData

scenario data

Returns

TestBuilder<GivenWhenThenSyntax>.Arranged<TData>

scenario with the given data

Type Parameters

TData

data required to when the scenario is run