public void InvalidUpdateField(FieldType fieldType, ResourceId resourceId, Properties.PropertyName property, string invalidValue)
        {
            var handler    = new DefaultManager();
            var properties = EquivalentCreateFieldTests.GenerateRequiredProperties(fieldType, Properties.Label.Max);

            properties[property.GetEnumStringValue()] = invalidValue;
            string request = PrepareUpdateRequest(fieldType, resourceId, properties);

            PrAssert.That(request, PrIs.Not.EqualTo(string.Empty));
            var response = handler.Send <FieldCreateResponse>(UpdateEndPoint, request, HttpMethod.POST);

            PrAssert.That(response, PrIs.ErrorResponse().And.HttpCode(System.Net.HttpStatusCode.BadRequest), "Still able to update Field");
        }
        public void ValidUpdateField(FieldType fieldType, ResourceId resourceId, Properties.PropertyName property, string value)
        {
            var handler    = new DefaultManager();
            var properties = EquivalentCreateFieldTests.GenerateRequiredProperties(fieldType, Properties.Label.Max);

            properties[property.GetEnumStringValue()] = value;
            string request = PrepareUpdateRequest(fieldType, resourceId, properties);

            PrAssert.That(request, PrIs.Not.EqualTo(string.Empty));
            var response = handler.Send <FieldCreateResponse>(UpdateEndPoint, request, HttpMethod.POST);

            PrAssert.That(response, PrIs.SuccessfulResponse().And.HttpCode(System.Net.HttpStatusCode.NoContent), "Can not Update Field");
            var fieldHandler = new FieldManager();
            var readResponse = fieldHandler.GetFieldDetails(FieldCreator.Data[$"{resourceId}_{fieldType}_{0}"].Guid);

            PrAssert.That(readResponse, PrIs.SuccessfulResponse().And.HttpCode(System.Net.HttpStatusCode.OK), "Can not Read Field");
            PrAssert.That(readResponse.Result.Values.Count, PrIs.EqualTo(1), "Can not read Field");
            PrAssert.That(readResponse.Result.Values.First().Value.Properties[Properties.PropertyName.SType.GetEnumStringValue()], PrIs.EqualTo($"{(int)fieldType}"), "Not as expected s.type");
            PrAssert.That(readResponse.Result.Values.First().Value.Properties[Properties.PropertyName.Label.GetEnumStringValue()], PrIs.EqualTo(CommonMapperValue.LabelMapperValue[Properties.Label.Max]), "Not as expected d.label.ja");
            NumberHelpers.VerifyProperties(readResponse.Result.Values.First().Value.Properties, properties);
        }