Esempio n. 1
0
        public static SolutionDetail CreateNewSolutionDetail(string slnId, Guid solutionDetailId, int numFeatures, bool clientApplication = true)
        {
            var faker = new Faker();

            var md = new SolutionDetail
            {
                SolutionDetailId  = solutionDetailId,
                SolutionId        = slnId,
                AboutUrl          = faker.Internet.Url(),
                Features          = GenerateFeatures(numFeatures, faker),
                ClientApplication = clientApplication ? ClientApplicationStrings.GetClientAppString() : string.Empty,
                Summary           = faker.Commerce.ProductName(),
                FullDescription   = faker.Name.JobTitle()
            };

            if (System.Diagnostics.Debugger.IsAttached)
            {
                Console.WriteLine(md.ToString());
            }

            return(md);
        }
 public static SolutionDetail CreateCompleteSolutionDetail(Solution solution, SolutionDetail solutionDetail)
 {
     return(CreateSolutionDetails.CreateNewSolutionDetail(solution.Id, solutionDetail.SolutionDetailId, 5));
 }