Beispiel #1
0
        public static GifModels.SolutionEx FromApi(SolutionEx api)
        {
            var retval = new GifModels.SolutionEx
            {
                Solution = Convert <Solutions, GifModels.Solution>(api.Solution),

                ClaimedCapability = api.ClaimedCapability
                                    .Select(claim => Convert <CapabilitiesImplemented, GifModels.CapabilityImplemented>(claim))
                                    .ToList(),
                ClaimedCapabilityEvidence = api.ClaimedCapabilityEvidence
                                            .Select(evidence => Convert <CapabilitiesImplementedEvidence, GifModels.CapabilityEvidence>(evidence))
                                            .ToList(),
                ClaimedCapabilityReview = api.ClaimedCapabilityReview
                                          .Select(review => Convert <CapabilitiesImplementedReviews, GifModels.Review>(review))
                                          .ToList(),

                ClaimedStandard = api.ClaimedStandard
                                  .Select(claim => Convert <StandardsApplicable, GifModels.StandardApplicable>(claim))
                                  .ToList(),
                ClaimedStandardEvidence = api.ClaimedStandardEvidence
                                          .Select(evidence => Convert <StandardsApplicableEvidence, GifModels.StandardApplicableEvidence>(evidence))
                                          .ToList(),
                ClaimedStandardReview = api.ClaimedStandardReview
                                        .Select(review => Convert <StandardsApplicableReviews, GifModels.Review>(review))
                                        .ToList(),

                TechnicalContact = api.TechnicalContact
                                   .Select(techCont => Convert <TechnicalContacts, GifModels.TechnicalContact>(techCont))
                                   .ToList()
            };

            return(retval);
        }
Beispiel #2
0
        public static SolutionEx FromCrm(GifModels.SolutionEx crm)
        {
            var retval = new SolutionEx
            {
                Solution = Convert <GifModels.Solution, Solutions>(crm.Solution),

                ClaimedCapability = crm.ClaimedCapability
                                    .Select(claim => Convert <GifModels.CapabilityImplemented, CapabilitiesImplemented>(claim))
                                    .ToList(),
                ClaimedCapabilityEvidence = crm.ClaimedCapabilityEvidence
                                            .Select(evidence => Convert <GifModels.CapabilityEvidence, CapabilitiesImplementedEvidence>(evidence))
                                            .ToList(),
                ClaimedCapabilityReview = crm.ClaimedCapabilityReview
                                          .Select(review => Convert <GifModels.Review, CapabilitiesImplementedReviews>(review))
                                          .ToList(),

                ClaimedStandard = crm.ClaimedStandard
                                  .Select(claim => Convert <GifModels.StandardApplicable, StandardsApplicable>(claim))
                                  .ToList(),
                ClaimedStandardEvidence = crm.ClaimedStandardEvidence
                                          .Select(evidence => Convert <GifModels.StandardApplicableEvidence, StandardsApplicableEvidence>(evidence))
                                          .ToList(),
                ClaimedStandardReview = crm.ClaimedStandardReview
                                        .Select(review => Convert <GifModels.Review, StandardsApplicableReviews>(review))
                                        .ToList(),

                TechnicalContact = crm.TechnicalContact
                                   .Select(techCont => Convert <GifModels.TechnicalContact, TechnicalContacts>(techCont))
                                   .ToList()
            };

            return(retval);
        }