Exemplo n.º 1
0
        public static ActionsSerializer WrapRequestData(string actionName, JObject data)
        {
            var result = new ActionsSerializer();

            result.Actions = new ActionSerializer[1];
            var tmp = new ActionSerializer();

            tmp.ActionName = actionName;
            tmp.ActionData = data;

            result.Actions[0] = tmp;

            return(result);
        }
        private void SerializeActions()
        {
            GenerateActions();
            _serializedActionsPath = Path.Combine(TestContext.TestRunResultsDirectory, TestContext.TestName + ".actions.xml");

            var actionSerializer = new ActionSerializer();
            actionSerializer.Serialize(_actions, _serializedActionsPath);
        }
        private void DeserializeActions()
        {
            SerializeActions();

            var actionSerializer = new ActionSerializer();
            _deserializedActions = actionSerializer.Deserialize(_serializedActionsPath);
        }