コード例 #1
0
ファイル: PersonTests.cs プロジェクト: slipmatt/ISAccounts
        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);
        }
コード例 #2
0
 public ResponseModel <List <PersonsModel> > SearchPeople(PersonSearchModel searchModel)
 {
     _logger.Debug($"SearchPeople with payload: {JsonConvert.SerializeObject(searchModel)}");
     return(_personService.SearchPeople(searchModel));
 }