public void Arrange() { _applicationId = Guid.NewGuid(); _assessorUserId = "TestUser"; _assessorUserName = "******"; _assessorNumber = 1; _assessorSequenceService = new Mock <IAssessorSequenceService>(); _mediator = new Mock <IMediator>(); _assessorSectorService = new Mock <IAssessorSectorService>(); var sectorsSection = new AssessorSection { LinkTitle = "Sectors Section", SectionNumber = RoatpWorkflowSectionIds.DeliveringApprenticeshipTraining.YourSectorsAndEmployees, SequenceNumber = RoatpWorkflowSequenceIds.DeliveringApprenticeshipTraining, Pages = new List <Page> { new Page { PageId = Guid.NewGuid().ToString(), DisplayType = SectionDisplayType.PagesWithSections, LinkTitle = "First Sector Starting Page", Active = true, Complete = true }, new Page { PageId = Guid.NewGuid().ToString(), DisplayType = SectionDisplayType.Questions, LinkTitle = "First Sector Question Page", Active = true, Complete = true } } }; var managementHierarchySection = new AssessorSection { LinkTitle = "Management Hierarchy Section", SectionNumber = RoatpWorkflowSectionIds.DeliveringApprenticeshipTraining.ManagementHierarchy, SequenceNumber = RoatpWorkflowSequenceIds.DeliveringApprenticeshipTraining, Pages = new List <Page> { new Page { PageId = Guid.NewGuid().ToString(), Active = true, Complete = true }, new Page { PageId = Guid.NewGuid().ToString(), Active = true, Complete = true } } }; _sequences = new List <AssessorSequence> { new AssessorSequence { Id = Guid.NewGuid(), SequenceNumber = RoatpWorkflowSequenceIds.DeliveringApprenticeshipTraining, SequenceTitle = "Delivering Apprenticeship Training Sequence", Sections = new List <AssessorSection> { sectorsSection, managementHierarchySection } } }; _assessorSequenceService.Setup(x => x.GetSequences(_applicationId)).ReturnsAsync(_sequences); _sectors = sectorsSection.Pages.Where(pg => pg.DisplayType == SectionDisplayType.PagesWithSections && pg.Active && pg.Complete) .Select(pg => new AssessorSector { PageId = pg.PageId, Title = pg.LinkTitle }) .ToList(); _assessorSectorService.Setup(x => x.GetSectorsForEmptyReview(sectorsSection)).Returns(_sectors); _assessorReviewCreationService = new AssessorReviewCreationService(_assessorSequenceService.Object, _assessorSectorService.Object, _mediator.Object); }