internal static SolutionDetail NewSolutionDetail(Faker faker, string solutionId) { var sd = new SolutionDetail { SolutionDetailId = Guid.NewGuid(), SolutionId = solutionId, AboutUrl = faker.Internet.Url(), Features = GenerateFeatures(5, faker), ClientApplication = ClientApplicationStringBuilder.GetClientAppString(clientApplicationTypes: "Browser-based, Native mobile or tablet, Native desktop"), Summary = faker.Lorem.Paragraphs(1), FullDescription = faker.Lorem.Paragraphs(7), RoadMap = faker.Rant.Review(), Hosting = CompleteHostingTypes, IntegrationsUrl = faker.Internet.Url(), ImplementationDetail = faker.Lorem.Sentences(2) }; if (sd.Summary.Length > 300) { sd.Summary = sd.Summary.Remove(299); } if (sd.FullDescription.Length > 1000) { sd.FullDescription = sd.FullDescription.Remove(999); } return(sd); }
public async Task GivenASupplierHasSavedAllMandatoryDataOnTheClientApplicationTypeSub_SectionsExceptForXAsync( string clientApplicationType, string section) { test.Solution.ClientApplication = ClientApplicationStringBuilder.GetClientAppString(section, clientApplicationType); await test.Solution.UpdateAsync(test.ConnectionString); test.Driver.Navigate().Refresh(); }