public void Parameter_DefinitionUnit_CreatesCorrectUriParameters(ExtendedDataIndex index, string unit, string parameterKey) { var request = CreateRequestWithDefinition(new ExtendedDataDefinition() { Index = index, Unit = unit }); var parameters = request.GetUriPathParameters(); Assert.That(parameters[parameterKey], Is.EqualTo(unit)); }
public void Parameter_DefinitionLabel_CreatesCorrectUriParameters(ExtendedDataIndex index, string label, string parameterKey) { var request = CreateRequestWithDefinition(new ExtendedDataDefinition() { Index = index, Label = label }); var parameters = request.GetUriPathParameters(); Assert.That(parameters[parameterKey], Is.EqualTo(label)); }
public void Parameter_DefinitionDisplayType_CreatesCorrectUriParameters(ExtendedDataIndex index, ExtendedDataDisplayType displayType, string parameterKey) { var request = CreateRequestWithDefinition(new ExtendedDataDefinition() { Index = index, DisplayType = displayType }); var parameters = request.GetUriPathParameters(); Assert.That(parameters[parameterKey], Is.EqualTo(displayType.ToString())); }
public void Parameter_DefinitionColour_CreatesCorrectUriParameters(ExtendedDataIndex index, string colour, string parameterKey) { var request = CreateRequestWithDefinition(new ExtendedDataDefinition() { Index = index, Colour = colour }); var parameters = request.GetUriPathParameters(); Assert.That(parameters[parameterKey], Is.EqualTo(colour)); }
public void Parameter_DefinitionAxis_CreatesCorrectUriParameters(ExtendedDataIndex index, int axis, string parameterKey) { var request = CreateRequestWithDefinition(new ExtendedDataDefinition() { Index = index, Axis = axis }); var parameters = request.GetUriPathParameters(); Assert.That(parameters[parameterKey], Is.EqualTo(axis)); }
/// <summary> /// The index that specifies which extended data value to update. /// </summary> /// <param name="index">The index of the extended data value.</param> /// <returns>The builder.</returns> public ExtendedDataDefinitionBuilder SetIndex(ExtendedDataIndex index) { _definition.Index = index; return(this); }