public async Task UpdateComment() { message = new UpdateImportNotificationAssesmentComments(transactionId, "something"); var result = await handler.HandleAsync(message); Assert.True(result); A.CallTo(() => repo.UpdateById(transactionId, "something")).MustHaveHappened(Repeated.Exactly.Once); }
public async Task <bool> HandleAsync(UpdateImportNotificationAssesmentComments message) { await repository.UpdateById(message.NotificationId, message.Comment); return(true); }