public void SimpeDeHydrate_PoliticalParty()
        {
            var politicalParty           = Create();
            var politicalPartyRepository = new PoliticalPartyRepository(ContextConnection());
            var id    = politicalPartyRepository.Save(politicalParty);
            var owner = politicalPartyRepository.GetById(id);

            Assert.IsNotNull(owner);
            Assert.AreEqual(owner.Id, politicalParty.Id);
        }
        public void Simple_Status_PoliticalParty()
        {
            var politicalPartyRepository = new PoliticalPartyRepository(ContextConnection());
            var politicalParty           = Create();

            politicalPartyRepository.Save(politicalParty);
            politicalPartyRepository.SetInactive(politicalParty);
            var inactive = politicalPartyRepository.GetById(politicalParty.Id);

            Assert.That(inactive.Status == EntityStatus.Inactive);

            politicalPartyRepository.SetActive(politicalParty);
            var active = politicalPartyRepository.GetById(politicalParty.Id);

            Assert.That(active.Status == EntityStatus.Active);

            politicalPartyRepository.SetAsDeleted(politicalParty);
            var deleted = politicalPartyRepository.GetById(politicalParty.Id);

            Assert.That(deleted.Status == EntityStatus.Deleted);
        }