public virtual void SetUp() { var builder = new ClassDefinitionBuilder(1, 2, 3); foreach (var fieldName in fieldNames) { builder.AddByteField(fieldName); } classDefinition = (ClassDefinition) builder.Build(); }
protected bool Equals(ClassDefinition other) { return _factoryId == other._factoryId && _classId == other._classId && _version == other._version && _fieldDefinitionsMap.Count == other._fieldDefinitionsMap.Count && !_fieldDefinitionsMap.Except(other._fieldDefinitionsMap).Any(); }
public IClassDefinition Build() { done = true; var cd = new ClassDefinition(factoryId, classId, version); foreach (FieldDefinition fd in fieldDefinitions) { cd.AddFieldDef(fd); } return cd; }
protected bool Equals(ClassDefinition other) { return factoryId == other.factoryId && classId == other.classId && version == other.version && fieldDefinitionsMap.Count == other.fieldDefinitionsMap.Count && !fieldDefinitionsMap.Except(other.fieldDefinitionsMap).Any(); }
protected bool Equals(ClassDefinition other) { return(_factoryId == other._factoryId && _classId == other._classId && _version == other._version && _fieldDefinitionsMap.Count == other._fieldDefinitionsMap.Count && !_fieldDefinitionsMap.Except(other._fieldDefinitionsMap).Any()); }
public IClassDefinition Build() { _done = true; var cd = new ClassDefinition(_factoryId, _classId, _version); foreach (var fd in _fieldDefinitions) { cd.AddFieldDef(fd); } return cd; }