public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Get <BeginModelMap>().Name.ShouldEqual("test"); _.Get <AddTag>().Tag.ShouldEqual("linkable"); _.Get <BeginView>().ViewName.ShouldEqual("qry_case_view"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("ownerUsername"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("caseType"); _.Get <BeginTransform>().Name.ShouldEqual("localizedListItem"); _.Get <AddTransformArgument>().Name.ShouldEqual("listName"); _.Get <AddTransformArgument>().Name.ShouldEqual("listValue"); _.Get <EndTransform>(); _.Get <EndProperty>(); _.Get <EndView>(); _.Get <EndModelMap>(); }); theScenario.Instructions.Length.ShouldEqual(17); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Verify <BeginModelMap>(__ => __.Name.ShouldEqual(WorkflowObject.KeyFor("case"))); _.SkipDefaults(); _.Is <PushVariableContext>(); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(8900); __.IsVerbose.ShouldBeTrue(); }); _.Get <BeginRelation>().RelationName.ShouldEqual("act_entry2doc_inst"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Is <EndProperty>(); _.Is <EndRelation>(); _.Is <EndActEntry>(); _.Is <PopVariableContext>(); _.Is <EndModelMap>(); }); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Get <BeginModelMap>().Name.ShouldEqual("test"); _.Get <BeginView>().ViewName.ShouldEqual("qry_case_view"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("ownerUsername"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("caseType"); _.Get <BeginTransform>().Name.ShouldEqual("localizedListItem"); _.Get <AddTransformArgument>().Name.ShouldEqual("listName"); _.Get <AddTransformArgument>().Name.ShouldEqual("listValue"); _.Get <EndTransform>(); _.Get <EndProperty>(); _.Verify <BeginAdHocRelation>(__ => { __.FromTableField.ShouldEqual("elm_objid"); __.ToTableName.ShouldEqual("case"); __.ToTableFieldName.ShouldEqual("objid"); }); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("lastModified"); _.Get <EndProperty>(); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("case_currq2queue")); _.Get <BeginProperty>().Key.ShouldEqual("inQueue"); _.Get <EndProperty>(); _.Get <EndRelation>(); _.Is <PushVariableContext>(); _.Get <BeginMappedProperty>().Key.ShouldEqual("site"); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("${relationName}")); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <EndRelation>(); _.Get <EndMappedProperty>(); _.Is <PopVariableContext>(); _.Get <EndRelation>(); _.Get <EndView>(); _.Get <EndModelMap>(); }); theScenario.Instructions.Length.ShouldEqual(34); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Get <BeginModelMap>().Name.ShouldEqual("test"); _.Get <BeginView>().ViewName.ShouldEqual("custom_view"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Get <EndProperty>(); _.Get <EndView>(); _.Get <EndModelMap>(); }); theScenario.Instructions.Length.ShouldEqual(8); }
public void verify_instructions() { theScenario.WhatDoIHave(); VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Verify <BeginModelMap>(__ => __.Name.ShouldEqual(WorkflowObject.KeyFor("case"))); _.SkipDefaults(); // The first used to be 3400 but now it should be gone _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(8900); __.IsVerbose.ShouldBeTrue(); }); }); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Verify <BeginModelMap>(__ => __.Name.ShouldEqual(WorkflowObject.KeyFor("case"))); _.SkipDefaults(); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(333068852); __.IsVerbose.ShouldBeFalse(); }); _.Verify <BeginProperty>(__ => __.Key.ShouldEqual(AdditionalInfoLexerTransform.Key)); _.Is <EndProperty>(); _.Verify <BeginTransform>(__ => __.Name.ShouldEqual("additionalInfoLexer")); _.Verify <AddTransformArgument>(__ => __.Name.ShouldEqual("pattern")); _.Is <EndTransform>(); _.Is <EndActEntry>(); _.Is <EndModelMap>(); }); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Get <BeginModelMap>().Name.ShouldEqual("test"); _.Get <BeginView>().ViewName.ShouldEqual("qry_case_view"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("ownerUsername"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("caseType"); _.Get <BeginTransform>().Name.ShouldEqual("localizedListItem"); _.Get <AddTransformArgument>().Name.ShouldEqual("listName"); _.Get <AddTransformArgument>().Name.ShouldEqual("listValue"); _.Get <EndTransform>(); _.Get <EndProperty>(); _.Verify <BeginAdHocRelation>(__ => { __.FromTableField.ShouldEqual("elm_objid"); __.ToTableName.ShouldEqual("case"); __.ToTableFieldName.ShouldEqual("objid"); }); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("lastModified"); _.Get <EndProperty>(); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("case_currq2queue")); _.Get <BeginProperty>().Key.ShouldEqual("newProperty"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("inQueue"); _.Get <EndProperty>(); _.Get <EndRelation>(); _.Is <PushVariableContext>(); _.Get <BeginMappedProperty>().Key.ShouldEqual("site"); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("${relationName}")); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Get <EndRelation>(); _.Get <EndMappedProperty>(); _.Is <PopVariableContext>(); _.Get <BeginMappedCollection>().Key.ShouldEqual("attachments"); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("case_attch2doc_inst")); _.Verify <FieldSortMap>(__ => { __.Field.ShouldEqual("objid"); __.Type.ShouldEqual("desc"); }); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Get <EndProperty>(); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("attach_info2doc_path")); _.Get <BeginProperty>().Key.ShouldEqual("fileIcon"); _.Get <EndProperty>(); _.Get <EndRelation>(); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("doc_inst2act_entry")); _.Get <BeginProperty>().Key.ShouldEqual("uploaded"); _.Get <EndProperty>(); _.Get <BeginMappedProperty>().Key.ShouldEqual("uploader"); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("act_entry2user")); _.Get <BeginProperty>().Key.ShouldEqual("login"); _.Get <EndProperty>(); _.Verify <BeginRelation>(__ => __.RelationName.ShouldEqual("user2employee")); _.Get <BeginProperty>().Key.ShouldEqual("firstName"); _.Get <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("lastName"); _.Get <EndProperty>(); _.Get <EndRelation>(); _.Get <EndRelation>(); _.Get <EndMappedProperty>(); _.Get <EndRelation>(); _.Get <EndRelation>(); _.Get <EndMappedCollection>(); _.Get <EndRelation>(); _.Get <EndView>(); _.Get <EndModelMap>(); }); theScenario.Instructions.Length.ShouldEqual(65); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Verify <BeginModelMap>(__ => __.Name.ShouldEqual(WorkflowObject.KeyFor("case"))); _.SkipDefaults(); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(3400); __.IsVerbose.ShouldBeFalse(); }); _.Get <BeginProperty>().Key.ShouldEqual("note"); _.Is <EndProperty>(); _.Get <BeginRelation>().RelationName.ShouldEqual("act_entry2email_log"); _.Get <BeginProperty>().Key.ShouldEqual("sender"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("recipient"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("body"); _.Is <EndProperty>(); _.Is <EndRelation>(); _.Is <EndActEntry>(); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(8900); __.IsVerbose.ShouldBeTrue(); }); _.Verify <BeginWhen>(__ => __.IsChild.ShouldBeFalse()); _.Get <BeginRelation>().RelationName.ShouldEqual("act_entry2doc_inst"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Is <EndProperty>(); _.Is <EndRelation>(); _.Is <EndWhen>(); _.Verify <BeginWhen>(__ => __.IsChild.ShouldBeTrue()); _.Get <BeginProperty>().Key.ShouldEqual("childProperty"); _.Is <EndProperty>(); _.Is <EndWhen>(); _.Is <EndActEntry>(); _.Is <EndModelMap>(); }); //theScenario.WhatDoIHave(); //var container = TestContainer.getContainer(); //var builder = container.With(theScenario.Cache).GetInstance<HistoryBuilder>(); //var data = builder.GetAll(new HistoryRequest //{ // ShowAllActivities = false, // WorkflowObject = new WorkflowObject // { // Id = "2", // Type = "case", // IsChild = false, // } //}); //Debug.WriteLine(data.Select(_ => _.ToValues()).ToJSON()); }
public void verify_instructions() { VerifyInstructions.Assert(theScenario.Instructions, _ => { _.Verify <BeginModelMap>(__ => __.Name.ShouldEqual(WorkflowObject.KeyFor("case"))); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(3000); __.IsVerbose.ShouldBeFalse(); }); _.Is <EndActEntry>(); _.SkipDefaults(); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(3400); __.IsVerbose.ShouldBeFalse(); }); _.Get <BeginProperty>().Key.ShouldEqual("note"); _.Is <EndProperty>(); _.Get <BeginRelation>().RelationName.ShouldEqual("act_entry2email_log"); _.Get <BeginProperty>().Key.ShouldEqual("sender"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("recipient"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("body"); _.Is <EndProperty>(); _.Is <EndRelation>(); _.Is <EndActEntry>(); _.Verify <BeginActEntry>(__ => { __.Code.ShouldEqual(8900); __.IsVerbose.ShouldBeTrue(); }); _.Verify <BeginWhen>(__ => __.IsChild.ShouldBeFalse()); _.Get <BeginRelation>().RelationName.ShouldEqual("act_entry2doc_inst"); _.Get <BeginProperty>().Key.ShouldEqual("id"); _.Is <EndProperty>(); _.Get <BeginProperty>().Key.ShouldEqual("title"); _.Is <EndProperty>(); _.Is <EndRelation>(); _.Is <EndWhen>(); _.Verify <BeginWhen>(__ => __.IsChild.ShouldBeTrue()); _.Get <BeginProperty>().Key.ShouldEqual("childProperty"); _.Is <EndProperty>(); _.Is <EndWhen>(); _.Is <EndActEntry>(); _.Is <EndModelMap>(); }); }