public void PersonTests_ReturnSearchedPeople(string idNumber, string surname, string accountNo, int expectedResult) { //Arrange var searchModel = new PersonSearchModel { IdNumber = idNumber, Surname = surname, AccountNumber = accountNo }; //Act var returnedRecord = _service.SearchPeople(searchModel); //Assert Assert.IsTrue(returnedRecord.ReturnObject.Count() == expectedResult); }
public ResponseModel <List <PersonsModel> > SearchPeople(PersonSearchModel searchModel) { _logger.Debug($"SearchPeople with payload: {JsonConvert.SerializeObject(searchModel)}"); return(_personService.SearchPeople(searchModel)); }