Exemplo n.º 1
0
        public void GetByEffectiveDate_LegalPartyRoleIdDoesNotMatch_EffectiveDateDoesNotExistsLess_EffectiveStatusNull()
        {
            ILegalPartyRepository legalPartyRepository = new LegalPartyRepository(_legalPartyContext);
            var legalParties = legalPartyRepository.GetByEffectiveDate(0, new DateTime(2009, 01, 01));

            legalParties.ShouldBeNull();
        }
Exemplo n.º 2
0
        public void GetByEffectiveDate_LegalPartyRoleIdDoesNotMatch_EffectiveDateMaxValue_EffectiveStatusNull()
        {
            ILegalPartyRepository legalPartyRepository = new LegalPartyRepository(_legalPartyContext);
            var legalParties = legalPartyRepository.GetByEffectiveDate(0, new DateTime(9999, 12, 31));

            legalParties.ShouldBeNull();
        }
Exemplo n.º 3
0
        public void GetByEffectiveDate_LegalPartyRoleIdMatch_EffectiveDateMaxValue_EffectiveStatusNull()
        {
            ILegalPartyRepository legalPartyRepository = new LegalPartyRepository(_legalPartyContext);
            var legalParties = legalPartyRepository.GetByEffectiveDate(TestDataBuilder.LegalPartyRoleId1, new DateTime(9999, 12, 31));

            legalParties.ShouldNotBeNull();
            legalParties.Id.ShouldBe(TestDataBuilder.LegalPartyId1);
        }