コード例 #1
0
        public async Task DeleteImportNotification_ReturnsTrue()
        {
            A.CallTo(() => repo.Delete(A <Guid> .Ignored)).Returns(true);
            var result = await handler.HandleAsync(this.message);

            Assert.True(result);
            A.CallTo(() => this.repo.Delete(A <Guid> .Ignored)).MustHaveHappened();
        }
コード例 #2
0
        public async Task <bool> HandleAsync(DeleteImportNotification message)
        {
            await repository.Delete(message.NotificationId);

            return(true);
        }