public EmployerAgreementBuilder WithLegalEntityId(long legalEntityId)
        {
            LegalEntities.Add(new LegalEntity
            {
                Id = legalEntityId
            });

            return(this);
        }
Ejemplo n.º 2
0
        private void SetAppReferralServiceRepos()
        {
            var localReferralServiceEntities = new ReferralsServiceEntities();
            var localLegalServiceEntities    = new LegalEntities();
            var localAsServiceEntities       = new AsReleaseEntities();

            ReferralsServiceRepository = new ReferralsRepository(localReferralServiceEntities);
            LegalReferredInOutCustomersLegalRepository = new LegalReferredInOutCustomersRepository(localLegalServiceEntities);
            LegalCustomerHistoryRepository             = new LegalCustomerHistoryRepository(localLegalServiceEntities);
            AsCustomerHistoryRepository = new AsCustomerHistoryRepository(localAsServiceEntities);
        }
        private LegalEntity EnsureLegalEntity(long legalEntityId)
        {
            var legalEngtity = LegalEntities.FirstOrDefault(le => le.Id == legalEntityId);

            if (legalEngtity == null)
            {
                LegalEntities.Add(legalEngtity = new LegalEntity {
                    Id = legalEntityId
                });
            }

            return(legalEngtity);
        }
Ejemplo n.º 4
0
        private GetLegalEntityQueryTestsFixture SetLegalEntity()
        {
            LegalEntity = new LegalEntity
            {
                Id     = 222222,
                Code   = "0123456",
                Sector = "Some Sector",
                Status = "Some Status"
            };

            LegalEntities.Add(LegalEntity);
            return(this);
        }