/// <summary> /// Initializes a new instance of the <see cref="TfsTestCaseField"/> class. /// </summary> /// <param name="workItem">Work item to present one field from.</param> /// <param name="configurationFieldItem">Configuration field item.</param> internal TfsTestCaseField(TfsWorkItem workItem, IConfigurationFieldItem configurationFieldItem) : base(workItem, configurationFieldItem) { //TODO MIS 25.06.2015 Commented out because currently appeared in build. Recheck //Debug.Assert(ReferenceName.Equals(FieldReferenceNames.TestSteps), "Only use this field implementation for TestSteps"); //Debug.Assert(Configuration.FieldValueType == FieldValueType.BasedOnFieldType, "make sure this field is correctly set up"); }
/// <summary> /// Initializes a new instance of the <see cref="TfsField"/> class. /// </summary> /// <param name="workItem">Work item to present one field from.</param> /// <param name="configurationFieldItem">Configuration field item.</param> internal TfsField(TfsWorkItem workItem, IConfigurationFieldItem configurationFieldItem) { Guard.ThrowOnArgumentNull(workItem, "workItem"); Guard.ThrowOnArgumentNull(configurationFieldItem, "configurationFieldItem"); WorkItem = workItem; Configuration = configurationFieldItem; _field = workItem.WorkItem.Fields[Configuration.ReferenceFieldName]; }
/// <summary> /// Initializes a new instance of the <see cref="TfsAttachment"/> class. /// </summary> /// <param name="workItem">Work item that holds the attachment.</param> /// <param name="attachment">Attachment to process.</param> internal TfsAttachment(TfsWorkItem workItem, Attachment attachment) { if (workItem == null) { throw new ArgumentNullException("workItem"); } if (attachment == null) { throw new ArgumentNullException("attachment"); } _workItem = workItem; _attachment = attachment; }
/// <summary> /// Initializes a new instance of the <see cref="TfsRevisionField"/> class. /// </summary> /// <param name="workItem">The work item that is wrapped</param> /// <param name="revision">Revision to wrap.</param> /// <param name="configurationFieldItem">Configuration of the field.</param> internal TfsRevisionField(TfsWorkItem workItem, Revision revision, IConfigurationFieldItem configurationFieldItem) : base(workItem, configurationFieldItem) { _revision = revision; }