public void GetAllAddress()
 {
     using (EFAddressMapper mapper = new EFAddressMapper(CONNECTION_STRING))
     {
         Assert.AreEqual(3, mapper.GetAll().Count);
     }
 }
 public void AddEmptyAddress()
 {
     using (EFAddressMapper mapper = new EFAddressMapper(CONNECTION_STRING))
     {
         mapper.AddorUpdate(AddressEmpty);
         Assert.AreEqual(3, mapper.GetAll().Count);
     }
 }
 public void AddAddressWithoutPostalCode()
 {
     using (EFAddressMapper mapper = new EFAddressMapper(CONNECTION_STRING))
     {
         mapper.AddorUpdate(AddressWithoutPostalCode);
         Assert.AreEqual(3, mapper.GetAll().Count);
     }
 }
        public void AddAddressClassic()
        {
            using (EFAddressMapper mapper = new EFAddressMapper(CONNECTION_STRING))
            {
                mapper.AddorUpdate(AddressClassic1);

                Assert.AreEqual(1, mapper.GetAll().Count);
            }
        }
        public void AddAddresses()
        {
            List <Address> adresses = new List <Address> {
                AddressClassic1, AddressClassic2
            };

            using (EFAddressMapper mapper = new EFAddressMapper(CONNECTION_STRING))
            {
                mapper.AddorUpdate(adresses);

                Assert.AreEqual(3, mapper.GetAll().Count);
            }
        }