private Association CreateSplitServices(ScheduleLocation[] mainStops = null) { mainStops ??= CreateMainStops(); var main = TestSchedules.CreateScheduleWithService("X12345", retailServiceId: "VT123401", stops: mainStops).Service; var associated = TestSchedules.CreateScheduleWithService("A98765", retailServiceId: "VT123402", stops: TestSchedules.CreateClaphamWokingSchedule(TestSchedules.TenTwentyFive)).Service; var association = TestAssociations.CreateAssociationWithServices(main, associated, category: AssociationCategory.Split); return(association); }
public static ScheduleLocation[] CreateAssociateStopsSettingClaphamActivities(AssociationCategory joinSplit, string activities) { ScheduleLocation[] stops; if (joinSplit.IsJoin()) { stops = TestSchedules.CreateWokingClaphamSchedule(TestSchedules.NineForty); stops[2].Activities = new Activities(activities); } else { stops = TestSchedules.CreateClaphamWokingSchedule(TestSchedules.TenTwentyFive); stops[0].Activities = new Activities(activities); } return(stops); }