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);
        }
예제 #2
0
        public async Task <bool> HandleAsync(UpdateImportNotificationAssesmentComments message)
        {
            await repository.UpdateById(message.NotificationId, message.Comment);

            return(true);
        }