public static PlanDO TestPlanWithStartingSubPlanAndActivityList() { var curPlanDO = new PlanDO { Id = GetTestGuidById(1), Description = "DO-1124 Proper deletion of Plan", Name = "TestPlanWithStartingSubPlan", PlanState = PlanState.Executing, }; var curSubPlanDO = new SubplanDO() { Id = GetTestGuidById(2), Name = string.Format("curSubPlanDO-{0}", 1), ParentPlanNode = curPlanDO, StartingSubPlan = true }; curPlanDO.ChildNodes.Add(curSubPlanDO); var curImmediateActionList = FixtureData.TestActivityList_ImmediateActivities(); foreach (var node in curImmediateActionList) { curSubPlanDO.ChildNodes.Add(node); } return(curPlanDO); }
public static ActivityDTO TestActivityDTO1() { return(new ActivityDTO() { ActivityTemplate = FixtureData.TestActivityTemplateDTO1(), }); }
// public static List <PlanNodeDO> TestActivityListParentActivityID12() { List <ActionListDO> actionLists = new List <ActionListDO>(); // var activityTempate = new ActivityTemplateDO() { Id = GetTestGuidById(1), Version = "1", Terminal = FixtureData.TerminalFive(), Name = "Monitor_DocuSign" }; ActionListDO al_1 = new ActionListDO() { ParentActivityId = GetTestGuidById(12) }; ActivityDO a_23 = new ActivityDO() { Id = GetTestGuidById(23), ActivityTemplate = activityTempate, ActivityTemplateId = activityTempate.Id, CrateStorage = "" }; al_1.Activities.Add(a_23); actionLists.Add(al_1); return(new List <PlanNodeDO>() { a_23 }); }
public static ActivityDTO TestActivityDTOForSalesforce() { return(new ActivityDTO() { ActivityTemplate = FixtureData.TestActivityTemplateSalesforce() }); }
public static ActivityDTO TestActivityDTOForSendGrid() { return(new ActivityDTO() { ActivityTemplate = FixtureData.TestActivityTemplateSendGrid() }); }
public static ActivityTemplateDO GetTestActivityTemplateDO() { return(new ActivityTemplateDO("Test", "test", "v1", "test", FixtureData.GetTestGuidById(1)) { Id = FixtureData.GetTestGuidById(1), Categories = new List <ActivityCategorySetDO>() }); }
public static ActivityNameListDTO TestActivityNameListDTO1() { return(new ActivityNameListDTO { ActivityNames = new List <ActivityNameDTO>() { FixtureData.TestActivityNameDTO1() } }); }
public static ActivityDTO TestActivityDTOSelectFr8ObjectInitial() { ActivityDTO curActionDTO = new ActivityDTO() { ActivityTemplate = FixtureData.ActivityTemplateDTOSelectFr8Object(), }; // curActionDTO.CrateStorage.CrateDTO.Add(CreateStandardConfigurationControls()); return(curActionDTO); }
public static CrateDTO CrateDTOForEvents(string externalAccountId) { EventReportCM curEventReportMS = new EventReportCM(); curEventReportMS.EventNames = "DocuSign Envelope Sent"; curEventReportMS.EventPayload.Add(FixtureData.GetEnvelopeIdCrate()); curEventReportMS.ExternalAccountId = externalAccountId; curEventReportMS.Manufacturer = "DocuSign"; var curEventReport = Crate.FromContent("Standard Event Report", curEventReportMS); return(new CrateManager().ToDto(curEventReport)); }
// public static ActionListDO TestActivityList6() { ContainerDO containerDO = FixtureData.TestContainer1(); containerDO.CrateStorage = ""; return(new ActionListDO { // Id = 2, // ActionListType = ActionListType.Immediate, // ActionListState = ActionListState.Unstarted, // Process = processDO }); }
public static PlanDO TestPlan5() { var plan = new PlanDO { Id = GetTestGuidById(40), Description = "Description 5", Name = "Plan 5", PlanState = PlanState.Executing, Fr8Account = FixtureData.TestDockyardAccount5() }; return(plan); }
public static ActivityDTO TestActivityDTOSelectFr8ObjectFollowup(string selected) { ActivityDTO curActionDTO = new ActivityDTO() { ActivityTemplate = FixtureData.ActivityTemplateDTOSelectFr8Object(), }; using (var crateStorage = ObjectFactory.GetInstance <ICrateManager>().GetUpdatableStorage(curActionDTO)) { crateStorage.Add(CreateStandardConfigurationControlSelectFr8Object(selected)); } return(curActionDTO); }
public static ActivityDTO TestActivityDTO2() { ActivityDTO curActionDTO = new ActivityDTO() { ActivityTemplate = FixtureData.TestActivityTemplateDTO1(), }; using (var crateStorage = ObjectFactory.GetInstance <ICrateManager>().GetUpdatableStorage(curActionDTO)) { crateStorage.Add(CreateStandardConfigurationControls()); } return(curActionDTO); }
public static TerminalDO TerminalSeven() { return(new TerminalDO { Id = FixtureData.GetTestGuidById(1), Name = "terminalDocuSign", Label = "DocuSign", Endpoint = "localhost", TerminalStatus = TerminalStatus.Active, Version = "1", Secret = Guid.NewGuid().ToString(), OperationalState = OperationalState.Active, ParticipationState = ParticipationState.Approved }); }
// public static ActionListDO TestActivityList7() { return(new ActionListDO { // Id = 2, // CurrentActivity = FixtureData.TestAction6(), // ActionListState = ActionListState.Unstarted, Activities = new System.Collections.Generic.List <PlanNodeDO>() { FixtureData.TestActivity10(), FixtureData.TestActivity7(), FixtureData.TestActivity8(null) } }); }
public static void AddAuthorizationToken(Fr8AccountDO user, string externalAccountId) { using (var uow = ObjectFactory.GetInstance <IUnitOfWork>()) { var tokenDO = new AuthorizationTokenDO() { UserID = user.Id, TerminalID = FixtureData.GetTestGuidById(1), AuthorizationTokenState = AuthorizationTokenState.Active, ExpiresAt = null, Token = @"{""Email"":""64684b41-bdfd-4121-8f81-c825a6a03582"",""ApiPassword"":""HyCXOBeGl/Ted9zcMqd7YEKoN0Q=""}", ExternalAccountId = externalAccountId }; uow.AuthorizationTokenRepository.Add(tokenDO); uow.SaveChanges(); } }
public static void AddTestActivityTemplate() { using (var uow = ObjectFactory.GetInstance <IUnitOfWork>()) { uow.TerminalRepository.Add(new TerminalDO { Id = FixtureData.GetTestGuidById(1), Name = "testTerminal", Label = "test", Version = "v1", Secret = "test", TerminalStatus = 1, ParticipationState = ParticipationState.Approved, OperationalState = OperationalState.Active, Endpoint = "http://localhost:11111" }); uow.SaveChanges(); uow.ActivityTemplateRepository.Add(GetTestActivityTemplateDO()); uow.SaveChanges(); } }
public static PlanDO TestPlanNoMatchingParentActivity() { var curPlanDO = new PlanDO { Id = GetTestGuidById(1), Description = "DO-1040 Process Template Test", Name = "Poress template", PlanState = PlanState.Executing, }; for (int i = 2; i <= 3; ++i) { var curSubPlanDO = new SubplanDO() { Id = GetTestGuidById(i), Name = string.Format("curSubPlanDO-{0}", i), ParentPlanNode = curPlanDO, ChildNodes = FixtureData.TestActivityListParentActivityID12() }; curPlanDO.ChildNodes.Add(curSubPlanDO); } return(curPlanDO); }
public static ICrateStorage TestConfigurationSettings() { return(FixtureData.CrateStorageDTO()); }
public static Fr8AccountDO TestUser1() { var curEmailAddressDO = FixtureData.TestEmailAddress1(); return(new Fr8AccountDO(curEmailAddressDO)); }