public void FileCreationNotificationIsSentOnce() { EventManagerMock.Verify(m => m.PublishAsync(It.Is <FileOperationCompletedEvent>(e => ValidateNotification(e))), Times.Once()); }
public void ExpectedNumberOfNotificationsAreSent() { EventManagerMock.Verify(m => m.PublishAsync(It.IsAny <FileOperationCompletedEvent>()), Times.Exactly(3)); }