Exemplo n.º 1
0
 internal Revision(
     [NotNull] IFieldDefinitionCollection definitions,
     int revision)
 {
     Rev              = revision;
     _values          = new Dictionary <int, object>();
     FieldDefinitions = definitions;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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>();
 }
Exemplo n.º 4
0
 partial void TryGetByName_PreCondition(IFieldDefinitionCollection instance, ref String name);
Exemplo n.º 5
0
 partial void TryGetByName_PostValidate(IFieldDefinitionCollection instance, String name);
Exemplo n.º 6
0
 partial void TryGetById_PreCondition(IFieldDefinitionCollection instance, ref Int32 id);
Exemplo n.º 7
0
 partial void TryGetById_PostValidate(IFieldDefinitionCollection instance, Int32 id);
Exemplo n.º 8
0
 public bool Equals(IFieldDefinitionCollection other)
 {
     return(Comparer.FieldDefinitionCollection.Equals(this, other));
 }
Exemplo n.º 9
0
 public MockFieldCollection([NotNull] WorkItemCore w, [NotNull] IFieldDefinitionCollection definitions)
     : base(w, definitions, (r, d) => new MockField(r, d))
 {
 }
Exemplo n.º 10
0
 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);