コード例 #1
0
        protected override CapabilitiesImplemented CreateInternal(CapabilitiesImplemented claim)
        {
            var val = _crmDatastore
                      .Create(Converter.FromApi(claim));

            return(Converter.FromCrm(val));
        }
        protected override StandardsApplicable ByIdInternal(string id)
        {
            var val = _crmDatastore
                      .ById(id);

            return(Converter.FromCrm(val));
        }
        protected override CapabilitiesImplementedEvidence ByIdInternal(string id)
        {
            var val = _crmDatastore
                      .ById(id);

            return(Converter.FromCrm(val));
        }
        protected override StandardsApplicable CreateInternal(StandardsApplicable claim)
        {
            var val = _crmDatastore
                      .Create(Converter.FromApi(claim));

            return(Converter.FromCrm(val));
        }
コード例 #5
0
        private Solutions GetFromSourceById(string id)
        {
            var val = _crmDatastore
                      .ById(id);

            return(Converter.FromCrm(val));
        }
        protected override CapabilitiesImplementedEvidence CreateInternal(CapabilitiesImplementedEvidence evidence)
        {
            var val = _crmDatastore
                      .Create(Converter.FromApi(evidence));

            return(Converter.FromCrm(val));
        }
コード例 #7
0
        private IEnumerable <Solutions> GetFromSourceByOrganisation(string organisationId)
        {
            var vals = _crmDatastore
                       .ByOrganisation(organisationId)
                       .Select(val => Converter.FromCrm(val));

            return(vals);
        }
コード例 #8
0
        protected override IEnumerable <CapabilitiesImplemented> BySolutionInternal(string solutionId)
        {
            var vals = _crmDatastore
                       .BySolution(solutionId)
                       .Select(val => Converter.FromCrm(val));

            return(vals);
        }
        protected override IEnumerable <CapabilityStandard> GetAllFromSource(string path, string parameter = null)
        {
            var vals = _crmDatastore
                       .GetAll()
                       .Select(val => Converter.FromCrm(val));

            return(vals);
        }
        protected override IEnumerable <StandardsApplicable> BySolutionInternal(string solutionId)
        {
            var vals = _crmDatastore
                       .BySolution(solutionId)
                       .Select(val => Converter.FromCrm(val));

            return(vals);
        }
コード例 #11
0
        public Frameworks ById(string id)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ById(id);

                return Converter.FromCrm(vals);
            }));
        }
コード例 #12
0
        public Contacts ById(string id)
        {
            return(GetInternal(() =>
            {
                var val = _crmDatastore
                          .ById(id);

                return Converter.FromCrm(val);
            }));
        }
コード例 #13
0
        public Organisations ById(string organisationId)
        {
            return(GetInternal(() =>
            {
                var val = _crmDatastore
                          .ById(organisationId);

                return Converter.FromCrm(val);
            }));
        }
コード例 #14
0
        public IEnumerable <Capabilities> ByStandard(string standardId, bool isOptional)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ByStandard(standardId, isOptional)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
コード例 #15
0
        public IEnumerable <Capabilities> ByIds(IEnumerable <string> ids)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ByIds(ids)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
コード例 #16
0
        public IEnumerable <Capabilities> ByFramework(string frameworkId)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ByFramework(frameworkId)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
        public IEnumerable <TechnicalContacts> BySolution(string solutionId)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .BySolution(solutionId)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
コード例 #18
0
        public IEnumerable <Frameworks> ByStandard(string standardId)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ByStandard(standardId)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
コード例 #19
0
        public IEnumerable <Frameworks> ByCapability(string capabilityId)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ByCapability(capabilityId)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
コード例 #20
0
        public IEnumerable <Contacts> ByOrganisation(string organisationId)
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .ByOrganisation(organisationId)
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
        public TechnicalContacts Create(TechnicalContacts techCont)
        {
            return(GetInternal(() =>
            {
                techCont.Id = UpdateId(techCont.Id);

                var val = _crmDatastore.Create(Converter.FromApi(techCont));

                return Converter.FromCrm(val);
            }));
        }
コード例 #22
0
        public IEnumerable <Frameworks> GetAll()
        {
            return(GetInternal(() =>
            {
                var vals = _crmDatastore
                           .GetAll()
                           .Select(val => Converter.FromCrm(val));

                return vals;
            }));
        }
コード例 #23
0
        protected override Contacts GetFromSource(string path, string parameter)
        {
            if (path == GetCachePathByEmail(parameter))
            {
                var val = _crmDatastore
                          .ByEmail(parameter);

                return(Converter.FromCrm(val));
            }

            throw new ArgumentOutOfRangeException($"{nameof(path)}", path, "Unsupported cache path");
        }
        protected override IEnumerable <IEnumerable <StandardsApplicableEvidence> > ByClaimInternal(string claimId)
        {
            var retval  = new List <IEnumerable <StandardsApplicableEvidence> >();
            var allVals = _crmDatastore
                          .ByClaim(claimId);

            foreach (var vals in allVals)
            {
                retval.Add(vals.Select(val => Converter.FromCrm(val)));
            }
            return(retval);
        }
コード例 #25
0
        public Solutions Create(Solutions solution)
        {
            return(GetInternal(() =>
            {
                solution.Id = UpdateId(solution.Id);

                var val = _crmDatastore
                          .Create(Converter.FromApi(solution));
                ExpireCache(solution);

                return Converter.FromCrm(val);
            }));
        }
コード例 #26
0
        protected override Organisations GetFromSource(string path, string parameter)
        {
            if (path == GetCachePathByContact(parameter))
            {
                var val = _crmDatastore
                          .ByContact(parameter);

                var retval = Converter.FromCrm(val);

                // currently not used but required in data model
                retval.Status = "Active";

                return(retval);
            }

            throw new ArgumentOutOfRangeException($"{nameof(path)}", path, "Unsupported cache path");
        }