Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task Should_Call_Service_With_Correct_Argument() { var data = new AuctionEndEventData() { ItemId = "Test_Id" }; var @event = new Event <AuctionEndEventData>() { EventName = AuctionEndEventData.EventName, Data = data }; await _eventHandler.Handle(@event); _mockBidService.Received(1).FinaliseAuction(data.ItemId); _mockBidService.ClearReceivedCalls(); }