public async Task TheDismissShouldBeSaved() { //Act await _controller.AddUserReminderSupression(EmployerAccountId, UserId, TaskType); //Assert _mediator.Verify(x => x.SendAsync(It.Is <SaveUserReminderSuppressionFlagCommand>( flag => flag.EmployerAccountId.Equals(EmployerAccountId) && flag.UserId.Equals(UserId) && flag.TaskType.Equals(TaskType)))); }