public void ShouldThrowArgumentNullExceptionOnConstructor()
		{
			// Act
			try
			{
				AddressRepository repository = new AddressRepository(null);
				Assert.Fail("This should not happen");
			}
			catch (Exception ex)
			{
				// Arrange
				Assert.IsInstanceOf<ArgumentNullException>(ex);
			}
		}
		private static void ClearAll()
		{
			PersonRepository repository1 = new PersonRepository(ConfigSettings.MySqlDatabaseConnectionName);
			ContactRepository repository2 = new ContactRepository(ConfigSettings.MySqlDatabaseConnectionName);
			EntityRepository repository3 = new EntityRepository(ConfigSettings.MySqlDatabaseConnectionName);
			OccupationNameRepository repository4 = new OccupationNameRepository(ConfigSettings.MySqlDatabaseConnectionName);
			EntityTypeRepository repository5 = new EntityTypeRepository(ConfigSettings.MySqlDatabaseConnectionName);
			ContactTypeRepository repository6 = new ContactTypeRepository(ConfigSettings.MySqlDatabaseConnectionName);
			TitleRepository repository7 = new TitleRepository(ConfigSettings.MySqlDatabaseConnectionName);
			AddressTypeRepository repository8 = new AddressTypeRepository(ConfigSettings.MySqlDatabaseConnectionName);
			AddressRepository repository9 = new AddressRepository(ConfigSettings.MySqlDatabaseConnectionName);
			GenderTypeRepository repository10 = new GenderTypeRepository(ConfigSettings.MySqlDatabaseConnectionName);

			repository9.ClearCollection();
			repository1.ClearCollection();
			repository2.ClearCollection();
			repository3.ClearCollection();
			repository4.ClearCollection();
			repository5.ClearCollection();
			repository6.ClearCollection();
			repository7.ClearCollection();
			repository8.ClearCollection();
			repository10.ClearCollection();
		}
		public void Init()
		{
			_addressRepository = new AddressRepository(ConfigSettings.MySqlDatabaseConnectionName);
		}
		private static void CreateAddresses()
		{
			AddressRepository repository = new AddressRepository(ConfigSettings.MySqlDatabaseConnectionName);

			AddressEntity entity = new AddressEntity()
			{
				AddressTypeId = _addressTypeEntities[0].Id,
				EntityId = _entityEntities[0].Id,
				Preferred = true,
				Street = "De haag",
				StreetNumber = "12",
				StreetNumberAddition = "",
				PostalCode = "3991TW",
				City = "Houten",
				CountryCode = "NL",
				DeletedDate = DateTime.MinValue
			};
			AddressEntity mEntity = new AddressEntity()
			{
				AddressTypeId = _addressTypeEntities[1].Id,
				EntityId = _entityEntities[1].Id,
				Preferred = true,
				Street = "De haagd",
				StreetNumber = "122",
				StreetNumberAddition = "d",
				PostalCode = "3991RF",
				City = "Utrecht",
				CountryCode = "NL",
				DeletedDate = DateTime.MinValue
			};

			entity = repository.Create(entity);
			mEntity = repository.Create(mEntity);

			_addressEntities.Add(entity);
			_addressEntities.Add(mEntity);
		}