public void ThenThePersonWasFound(Table table) { PersonItem actual = _persons.FirstOrDefault(x => x.FirstName.StartsWith(_firstLetter)); var expected = table.CreateInstance <PersonItem>(); Assert.Equal(actual, expected); }
private bool Equals(PersonItem other) { return(string.Equals(FirstName, other.FirstName) && string.Equals(LastName, other.LastName)); }
private bool Equals(PersonItem other) { return string.Equals(FirstName, other.FirstName) && string.Equals(LastName, other.LastName); }