예제 #1
0
        public async Task UpdateComment()
        {
            message = new UpdateExportNotificationAssementComments(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(UpdateExportNotificationAssementComments message)
        {
            await repository.UpdateById(message.NotificationId, message.Comment);

            return(true);
        }