Exemple #1
0
 public InstitutionRepositoryFactory()
 {
     CentralServicesNodeFactory = new CentralServicesNodeFactory();
     AccessPointFactory         = new AccessPointFactory();
     InstitutionFactory         = new InstitutionFactory();
     CertificateFactory         = new CertificateFactory();
 }
Exemple #2
0
        public InstitutionRepository Create()
        {
            var institutionCount = AccessPointCount * InstitutionsPerAccessPoint;

            var result = new InstitutionRepository
            {
                CentralServicesNode = CentralServicesNodeFactory.Create(),
                AccessPoints        = AccessPointFactory.Create(AccessPointCount),
                Institutions        = InstitutionFactory.Create(institutionCount),
                Certificates        = CertificateFactory.Create(AccessPointCount * 3 + institutionCount * 2 + 2)
            };

            LinkInstitutions(result);
            LinkAccessPointCertificates(result);
            LinkInstitutionCertificates(result);
            LinkCentralServicesNodeCertificates(result);
            return(result);
        }