Ejemplo n.º 1
0
        public void TestStoreAsync()
        {
            TestResult tr           = new TestResult(_bc);
            Player     playerEntity = Initialize();

            playerEntity.StoreAsync(tr.ApiSuccess, tr.ApiError);
            tr.Run();

            Cleanup(playerEntity);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }