public void ShouldWarnUserIfSwitchingFromOnlineToOfflineVacancyHavingTextInQuestionOne() { VacancyPostingProvider.Setup(p => p.GetVacancy(It.IsAny <int>())).Returns(AVacancyWithQuestionOneFilled()); var mediator = GetMediator(); var result = mediator.CreateVacancy(new NewVacancyViewModel { VacancyOwnerRelationship = new VacancyOwnerRelationshipViewModel { Employer = new EmployerViewModel() }, OfflineVacancy = true, OfflineApplicationUrl = AWebPage, OfflineApplicationInstructions = AString, Title = AString, ShortDescription = AString, VacancyReferenceNumber = AnInt, VacancyType = VacancyType.Apprenticeship }, Ukprn); result.Should() .Match((MediatorResponse <NewVacancyViewModel> p) => p.Message.Level == UserMessageLevel.Info && !string.IsNullOrWhiteSpace(p.Message.Text)); }