public void Get_InsertsAndRetrievesTheRecord_DoesNotMatchId() { IRevenueObjectRepository revenueObjectRepository = new RevenueObjectRepository(_context); var revenueObjects = revenueObjectRepository.Get(0, _newestEffectiveDate); revenueObjects.ShouldBeNull(); }
public void Get_InsertsAndRetrievesTheRecord_MatchesId() { IRevenueObjectRepository revenueObjectRepository = new RevenueObjectRepository(_context); var revenueObjects = revenueObjectRepository.Get(Id, _newestEffectiveDate); revenueObjects.ShouldNotBeNull(); revenueObjects.Id.ShouldBe(Id); revenueObjects.BeginEffectiveDate.ShouldBe(_newestEffectiveDate); revenueObjects.PropertyType.ShouldBe(SysTypeShortDescrParcel); SitusAddress situsAddress = revenueObjects.SitusAddress; situsAddress.FreeFormAddress.ShouldBe(_situsAddress.FreeFormAddress); situsAddress.City.ShouldBe(_situsAddress.City); situsAddress.StateCode.ShouldBe(_situsAddress.StateCode); situsAddress.PostalCode.ShouldBe(_situsAddress.PostalCode); revenueObjects.Description.ShouldBe(DescHeaderDescription); revenueObjects.ClassCodeDescription.ShouldBe(SysTypeClassCdDescr); revenueObjects.RelatedPins.ShouldContain(RelatedRevenueObjectId.ToString()); revenueObjects.RelatedPins.ShouldContain(RelatedRevenueObjectPin); revenueObjects.RelatedPins.ShouldContain(SysTypeClassCdId.ToString()); revenueObjects.RelatedPins.ShouldContain(RelatedRevenueObjectRollType.ToString()); }