public void SearchComparingInstanceProperties() { var constants = new InstanceConstants(); // Verify that instance properties in LINQ work var equality = _realm.All <Person>().Where(p => p.Salary == constants.SixtyThousandProperty).ToArray(); Assert.That(equality.Length, Is.EqualTo(1)); Assert.That(equality[0].FullName, Is.EqualTo("John Doe")); }
public void SearchComparingInstanceProperties() { var constants = new InstanceConstants(); // Verify that instance properties in LINQ work var equality = _realm.All<Person>().Where(p => p.Salary == constants.SixtyThousandProperty).ToArray(); Assert.That(equality.Length, Is.EqualTo(1)); Assert.That(equality[0].FullName, Is.EqualTo("John Doe")); }