示例#1
0
        public State GetStateById(string stateId)
        {
            PostalInfoLookupDataSet.StatesRow row = _data.States.FindById(stateId);
            if (row == null)
            {
                return(null);
            }

            return(_data.StatesRowToState(row));
        }
示例#2
0
 private static void AssertRowMatchesObject(PostalInfoLookupDataSet.StatesRow row,
                                            State state, int rowNumber)
 {
     Assert.AreEqual(row.Id, state.Id, "ID does not match at index {0}", rowNumber);
     Assert.AreEqual(row.Name, state.Name, "Name does not match at index {0}", rowNumber);
 }