public static Dictionary <string, object> OptionsSchemaProperty(string root = null, string keyword = null) { return(new Dictionary <string, object>() { ["root"] = root ?? CommonSchema.GetUuid("Option.P_Gender", true).ToString(), ["keyword"] = string.IsNullOrEmpty(keyword) ? "コンサル" : keyword }); }
public static object InvalidOptionsRootMapper(InvalidOptionsRoot root) { var dict = new Dictionary <InvalidOptionsRoot, object>() { [InvalidOptionsRoot.MinusRoot] = -1, [InvalidOptionsRoot.ZeroRoot] = 0, [InvalidOptionsRoot.LatinCharRoot] = "character", [InvalidOptionsRoot.TrueRoot] = "true", [InvalidOptionsRoot.FalseRoot] = "false", [InvalidOptionsRoot.Null] = "null", [InvalidOptionsRoot.Empty] = String.Empty, [InvalidOptionsRoot.CommaSeparatedList] = "{\",\", \",\"}", [InvalidOptionsRoot.JsonArray] = "{\"root\":5,\"root\":6,\"root\":2,\"root\":3}", [InvalidOptionsRoot.LongString] = Utils.RandomString(5000), [InvalidOptionsRoot.NotExistOption] = "00000000-1234-5678-9999-123456789999", [InvalidOptionsRoot.ValidGuidWithoutHyphen] = CommonSchema.GetUuid("Option.P_Gender", true).ToString().Replace("-", string.Empty), [InvalidOptionsRoot.SpaceHyphen] = CommonSchema.GetUuid("Option.P_Gender", true).ToString().Replace("-", " "), [InvalidOptionsRoot.DoubleHyphen] = CommonSchema.GetUuid("Option.P_Gender", true).ToString().Replace("-", "--"), [InvalidOptionsRoot.GuidField] = GetFieldUuId("P_Id", TestCoreFramework.Enums.ResourceType.Client), [InvalidOptionsRoot.GuidFieldGroup] = "00000000-0000-07d3-4009-00000000058d" }; return(dict[root]); }