You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When constructing MockWorkItem() and passing values for a field collection they are ultimately used in setting the private variable _fields on WorkItemCore which is the bases for retrieving fields via indexing. However the variable _fields in WorkItemCore is distinct from the _fields variable in Workitem, which backs the Fields property. In effect, MockWorkItem() enables initializing a workitem with retrievable values via workitem["property"] but not workitem.Fields["property"].Value, nor enumerating the values of the workitem.Fields property.
The text was updated successfully, but these errors were encountered:
A work around for this is to set the desired values one at a time either using an object an initializer or setting the values one at a time after an initialization.
When constructing MockWorkItem() and passing values for a field collection they are ultimately used in setting the private variable _fields on WorkItemCore which is the bases for retrieving fields via indexing. However the variable _fields in WorkItemCore is distinct from the _fields variable in Workitem, which backs the Fields property. In effect, MockWorkItem() enables initializing a workitem with retrievable values via workitem["property"] but not workitem.Fields["property"].Value, nor enumerating the values of the workitem.Fields property.
The text was updated successfully, but these errors were encountered: