public async Task ThenCorrectResultIsReturned(bool expectedResult, RequestStatus[] retrievedRequestStatuses, RequestStatus[] currentRequestStatus) { //Arrange MockMediator.Setup(x => x.SendAsync(It.IsAny <GetCommitmentsQuery>())) .ReturnsAsync(new GetCommitmentsResponse { Commitments = GetTestCommitmentsOfStatus(1, retrievedRequestStatuses).ToList() }); //Act var result = await EmployerCommitmentOrchestrator.AnyCohortsForCurrentStatus("ABC123", currentRequestStatus); //Assert Assert.AreEqual(expectedResult, result); }