public async void HttpGetAllPatient_HappyPath() { //ARRANGE var expected = typeof(OkObjectResult); var fakePageNumber = 1; var fakeUserResult = A.Fake <List <PatientDTO> >(); var fakeService = A.Fake <PatientServices>(); var fakeHelper = A.Fake <IHelperValidationSSN>(); A.CallTo(() => fakeService.AllPatients(fakePageNumber)).Returns(fakeUserResult); var sut = new PatientController(fakeService, fakeHelper); //ACT var result = await sut.AllPatients(1); //ASSERT Assert.IsType(expected, result); }