public void TestStoreAsync() { TestResult tr = new TestResult(_bc); Player playerEntity = Initialize(); playerEntity.StoreAsync(tr.ApiSuccess, tr.ApiError); tr.Run(); Cleanup(playerEntity); }
private Player Initialize() { TestResult tr = new TestResult(_bc); _bc.EntityFactory.RegisterEntityClass <Player>(Player.ENTITY_TYPE); Player playerEntity = _bc.EntityFactory.NewEntity <Player>(Player.ENTITY_TYPE); playerEntity.StoreAsync(tr.ApiSuccess, tr.ApiError); tr.Run(); return(playerEntity); }
private Player Initialize() { TestResult tr = new TestResult(); BrainCloudClient.Instance.EntityFactory.RegisterEntityClass <Player>(Player.ENTITY_TYPE); Player playerEntity = BrainCloudClient.Instance.EntityFactory.NewEntity <Player>(Player.ENTITY_TYPE); playerEntity.StoreAsync(tr.ApiSuccess, tr.ApiError); tr.Run(); return(playerEntity); }
public void TestStoreAsync() { TestResult tr = new TestResult(_bc); _bc.EntityFactory.RegisterEntityClass <Player>(Player.ENTITY_TYPE); Player playerEntity = _bc.EntityFactory.NewEntity <Player>(Player.ENTITY_TYPE); playerEntity.StoreAsync(tr.ApiSuccess, tr.ApiError); tr.Run(); Cleanup(playerEntity); }
public void TestStoreAsync() { TestResult tr = new TestResult(); BrainCloudClient.Instance.EntityFactory.RegisterEntityClass <Player>(Player.ENTITY_TYPE); Player playerEntity = BrainCloudClient.Instance.EntityFactory.NewEntity <Player>(Player.ENTITY_TYPE); playerEntity.StoreAsync(tr.ApiSuccess, tr.ApiError); tr.Run(); Cleanup(playerEntity); }