コード例 #1
0
        public void TestCenter()
        {
            var binder = Substitute.For<Remoting.ISoulBinder>();
            var finder = Substitute.For<IAccountFinder>();
            var record = Substitute.For<IGameRecorder>();

            var center = new Center(finder, record);

            Updater updater = new Updater();
            center.Join(binder);
            updater.Add(center);
            updater.Working();
            updater.Shutdown();
        }
コード例 #2
0
        private void _Play(BuildCenterStage.ExternalFeature features)
        {
            this._Center = new Center(
                features.AccountFinder,
                features.GameRecorder
                );

            this._Updater.Add(this._Center);
        }