public virtual void SetUp()
 {
     var builder = new ClassDefinitionBuilder(1, 2, 3);
     foreach (var fieldName in fieldNames)
     {
         builder.AddByteField(fieldName);
     }
     classDefinition = (ClassDefinition) builder.Build();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public IClassDefinition Build()
 {
     done = true;
     var cd = new ClassDefinition(factoryId, classId, version);
     foreach (FieldDefinition fd in fieldDefinitions)
     {
         cd.AddFieldDef(fd);
     }
     return cd;
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 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());
 }
コード例 #6
0
 public IClassDefinition Build()
 {
     _done = true;
     var cd = new ClassDefinition(_factoryId, _classId, _version);
     foreach (var fd in _fieldDefinitions)
     {
         cd.AddFieldDef(fd);
     }
     return cd;
 }