public State GetStateById(string stateId) { PostalInfoLookupDataSet.StatesRow row = _data.States.FindById(stateId); if (row == null) { return(null); } return(_data.StatesRowToState(row)); }
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); }