public EmulateLogicAPI() { _config = ConfigUtility.GetData(_path); _externalApi = new SampleExternalAPI(); var serializator = new TestSerializator(); var command = new TestCommandStorage(serializator); _clientContext = ClientLogicCreator.Create(serializator, command, _externalApi); _clientContext.InitData(_config.defaultClientState, _config.staticData); _clientContext.UpdateServerState(_config.defaultServerState); //_emulateContext = ClientLogicCreator.Create(_externalApi); _emulateContext.InitData(_clientContext.State, null); }
public void InitData() { _clientContext.InitData(_config.defaultClientState, _config.staticData); _clientContext.UpdateServerState(_config.defaultServerState); }