Exemplo n.º 1
0
 static STR_OOR Build_ElwPart(STR_OOR oor, STR_OORInput input)
 {
     oor.InitAccount_1(input.Root_ElwAccountName);
     oor.InitAgent_2();
     oor.InitDefaultElwOrderLimit_3_1();
     oor.InitEmptyRMDElwOrderLimit_3_2();
     oor.InitElwOOR_4();
     return oor;
 }
Exemplo n.º 2
0
        public static STR_OOR Build(String inputJson, String strategyName)
        {
            STR_OOR oor = new STR_OOR(strategyName);

            Serializer serializer = new Serializer(typeof(STR_OORInput));
            STR_OORInput input = serializer.Deserialize(inputJson) as STR_OORInput;

            Build_ElwPart(oor, input);

            // validation
            oor.ValidateInits_6();
            return oor;
        }