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(); }
public async Task <bool> HandleAsync(DeleteImportNotification message) { await repository.Delete(message.NotificationId); return(true); }