public void WontRunConstructorWhenCreatingProxy() { var s = Guid.NewGuid().ToString(); var db = new SourceryDb().Get<Registry>(s); var model = db.ReadModel; Registry.throwError = true; var proxy = db.Proxy(); }
public void CanUseGatewayInProxy() { var s = Guid.NewGuid().ToString(); var db = new SourceryDb().Get<Thing>(s); var model = db.ReadModel; var proxy = db.Proxy(); proxy.MethodThatGetsTime(); var db2 = new SourceryDb().Get<Thing>(s); var model2 = db2.ReadModel; Assert.NotNull(model2.Then); }