public void can_persist_with_natural_key() { var doc = new NonStandardDoc {Name = "somebody"}; using (var session = theStore.OpenSession()) { session.Store(doc); session.SaveChanges(); } using (var query = theStore.QuerySession()) { query.Load<NonStandardDoc>("somebody").ShouldNotBeNull(); } }
public void can_persist_with_natural_key() { var doc = new NonStandardDoc { Name = "somebody" }; using (var session = theStore.OpenSession()) { session.Store(doc); session.SaveChanges(); } using (var query = theStore.QuerySession()) { query.Load <NonStandardDoc>("somebody").ShouldNotBeNull(); } }