public void SerializationOK() { _client.Connect(); var data = new SomeType() { Date = DateTime.Today, Name = "Yolo" }; _client .Cypher .Create("(n:SomeType {data})") .WithParam("data", data) .ExecuteWithoutResults(); var actual = _client.Cypher.Match("(n:SomeType {Name:'Yolo'})").Return(n => n.As <SomeType>()).Results.First(); Assert.AreEqual(actual, data); }
protected bool Equals(SomeType other) { return(Date.Equals(other.Date) && string.Equals(Name, other.Name)); }