public State StatesRowToState(StatesRow row) { State state = new State(row.Id, row.Name); return state; }
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); }