ISandboxService CreateForFailingSandboxCreate(string userAppRole,
                                                      int userId,
                                                      int studyId = StudyConstants.CREATED_BY_ME_ID,
                                                      string wbs  = StudyConstants.CREATED_BY_ME_WBS, bool wbsExists = false, bool wbsValidationFails = false)
        {
            var study = StudyModelFactory.CreateBasic(id: studyId, wbs: wbs);

            var studyWbsValidationService = StudyWbsValidationMockServiceFactory.GetService(_serviceProvider, wbsExists, wbsValidationFails);

            return(SandboxServiceWithMocksFactory.ForSandboxCreate(_serviceProvider, userAppRole, userId, studyWbsValidationService, new List <Study>()
            {
                study
            }));
        }
 Study CreateStudyValidWbs()
 {
     return(StudyModelFactory.CreateBasic());
 }
 Study CreateStudyInvalidWbs()
 {
     return(StudyModelFactory.CreateBasic(wbsValid: false));
 }