internal Revision( [NotNull] IFieldDefinitionCollection definitions, int revision) { Rev = revision; _values = new Dictionary <int, object>(); FieldDefinitions = definitions; }
public MockWorkItemType( string name, IFieldDefinitionCollection fieldDefinitions, string description = null, IWorkItemStore store = null) : base(name, description, new Lazy <IFieldDefinitionCollection>(() => fieldDefinitions)) { WorkItemFactory = () => new MockWorkItem(this); Store = store; }
internal FieldCollection( [NotNull] IRevisionInternal revision, [NotNull] IFieldDefinitionCollection definitions, [NotNull] Func <IRevisionInternal, IFieldDefinition, IField> fieldFactory) { _revision = revision; _definitions = definitions; _fieldFactory = fieldFactory; _cache = new Dictionary <int, IField>(); }
partial void TryGetByName_PreCondition(IFieldDefinitionCollection instance, ref String name);
partial void TryGetByName_PostValidate(IFieldDefinitionCollection instance, String name);
partial void TryGetById_PreCondition(IFieldDefinitionCollection instance, ref Int32 id);
partial void TryGetById_PostValidate(IFieldDefinitionCollection instance, Int32 id);
public bool Equals(IFieldDefinitionCollection other) { return(Comparer.FieldDefinitionCollection.Equals(this, other)); }
public MockFieldCollection([NotNull] WorkItemCore w, [NotNull] IFieldDefinitionCollection definitions) : base(w, definitions, (r, d) => new MockField(r, d)) { }
internal Revision([NotNull] IWorkItem workItem, int revision) { WorkItem = workItem ?? throw new ArgumentNullException(nameof(workItem)); Rev = revision; FieldDefinitions = workItem.Type.FieldDefinitions; }
partial void FieldDefinitions_SetCondition(ref IWorkItemType instance, ref IFieldDefinitionCollection setValue);