次の方法で共有


BrokeredServiceContractTestBase<TInterface,TServiceMock>.AssertEventRaisedAsync メソッド

定義

オーバーロード

AssertEventRaisedAsync(Action<TInterface,EventHandler>, Action<TInterface,EventHandler>, Action<TServiceMock>)

予期されるデータを使用してイベントが発生することをアサートします。

AssertEventRaisedAsync<TEventArgs>(Action<TInterface,EventHandler<TEventArgs>>, Action<TInterface,EventHandler<TEventArgs>>, Action<TServiceMock>, Action<TEventArgs>)

予期されるデータを使用してイベントが発生することをアサートします。

AssertEventRaisedAsync(Action<TInterface,EventHandler>, Action<TInterface,EventHandler>, Action<TServiceMock>)

予期されるデータを使用してイベントが発生することをアサートします。

protected System.Threading.Tasks.Task AssertEventRaisedAsync (Action<TInterface,EventHandler> addHandler, Action<TInterface,EventHandler> removeHandler, Action<TServiceMock> triggerEvent);
member this.AssertEventRaisedAsync : Action<'Interface, EventHandler (requires 'Interface : null)> * Action<'Interface, EventHandler (requires 'Interface : null)> * Action<#'Interface> -> System.Threading.Tasks.Task
Protected Function AssertEventRaisedAsync (addHandler As Action(Of TInterface, EventHandler), removeHandler As Action(Of TInterface, EventHandler), triggerEvent As Action(Of TServiceMock)) As Task

パラメーター

addHandler
Action<TInterface,EventHandler>

指定したハンドラーを のイベント ClientProxyに追加できるデリゲート。

removeHandler
Action<TInterface,EventHandler>

のイベント ClientProxyから指定されたハンドラーを削除できるデリゲート。

triggerEvent
Action<TServiceMock>

を直接呼び出して Service イベントを発生させるデリゲート。

戻り値

Taskテスト メソッドによって待機する必要がある 。

適用対象

AssertEventRaisedAsync<TEventArgs>(Action<TInterface,EventHandler<TEventArgs>>, Action<TInterface,EventHandler<TEventArgs>>, Action<TServiceMock>, Action<TEventArgs>)

予期されるデータを使用してイベントが発生することをアサートします。

protected System.Threading.Tasks.Task AssertEventRaisedAsync<TEventArgs> (Action<TInterface,EventHandler<TEventArgs>> addHandler, Action<TInterface,EventHandler<TEventArgs>> removeHandler, Action<TServiceMock> triggerEvent, Action<TEventArgs> argsAssertions);
member this.AssertEventRaisedAsync : Action<'Interface, EventHandler<'EventArgs> (requires 'Interface : null)> * Action<'Interface, EventHandler<'EventArgs> (requires 'Interface : null)> * Action<#'Interface> * Action<'EventArgs> -> System.Threading.Tasks.Task
Protected Function AssertEventRaisedAsync(Of TEventArgs) (addHandler As Action(Of TInterface, EventHandler(Of TEventArgs)), removeHandler As Action(Of TInterface, EventHandler(Of TEventArgs)), triggerEvent As Action(Of TServiceMock), argsAssertions As Action(Of TEventArgs)) As Task

型パラメーター

TEventArgs

デリゲートの EventHandler<TEventArgs> 型引数。

パラメーター

addHandler
Action<TInterface,EventHandler<TEventArgs>>

指定したハンドラーを のイベント ClientProxyに追加できるデリゲート。

removeHandler
Action<TInterface,EventHandler<TEventArgs>>

のイベント ClientProxyから指定されたハンドラーを削除できるデリゲート。

triggerEvent
Action<TServiceMock>

を直接呼び出して Service イベントを発生させるデリゲート。

argsAssertions
Action<TEventArgs>

イベントと共に送信されたデータに対するアサーションを含む を実行するデリゲート。

戻り値

Taskテスト メソッドによって待機する必要がある 。

適用対象