public void SetSymbolRole(ConfigRole _role, ConfigName _name, ConfigStub _stub, params ConfigRole[] _path) { InternalRole = _role; InternalName = _name; InternalPath = _path.ToList(); InternalStub = CloneUtils <ConfigStub> .CloneOrNull(_stub); }
public ConfigStub CloneMasterStub(ConfigCode _code, ConfigRole _role, ConfigGang _gang, ConfigType _type, ConfigBind _bind, TaxingBehaviour _taxing, HealthBehaviour _health, SocialBehaviour _social) { ConfigStub returnStub = CloneUtils <ConfigStub> .CloneOrNull(InternalStub); returnStub.SetSourceConfig(_code, _role, _gang, _type, _bind, _taxing, _health, _social); return(returnStub); }
public ArticleConfigMaster(ConfigRole _role, ConfigName _name, ConfigStub _stub, params ConfigRole[] _path) { InternalRole = _role; InternalName = _name; InternalPath = _path.ToList(); InternalStub = CloneUtils <ConfigStub> .CloneOrNull(_stub); }
public void Write_AnyConfiguration_ConfigurationIsPersistent() { //ARRANGE ConfigStub myCfg = CreateConfig(It.IsAny <string>()); //ACT var result = ConfigurationManager.Instance.Write(myCfg); var fileExist = File.Exists(myCfg.GetFilePath()); //ASSERT Assert.AreEqual(true, result); Assert.AreEqual(true, fileExist); }
public void SetSymbolRole(ConfigRole _role, ConfigStub _stub) { base.SetSymbolRole(_role); InternalStub = _stub; }