Example #1
0
        public void Constructor()
        {
            PersonGender personGender;

            personGender = new PersonGender(1, "Test", 1, DataContextTest.GetOneDataContext());
            Assert.IsNotNull(personGender);
        }
        public void Constructor()
        {
            PhoneNumberType phoneNumberType;

            phoneNumberType = new PhoneNumberType(1, "Test", 1, DataContextTest.GetOneDataContext());
            Assert.IsNotNull(phoneNumberType);
        }
 private PhoneNumberType GetPhoneNumberType(Boolean refresh)
 {
     if (_phoneNumberType.IsNull() || refresh)
     {
         _phoneNumberType = new PhoneNumberType(1, "Test", 1, DataContextTest.GetOneDataContext());
     }
     return(_phoneNumberType);
 }
Example #4
0
 private PersonGender GetPersonGender(Boolean refresh)
 {
     if (_personGender.IsNull() || refresh)
     {
         _personGender = new PersonGender(1, "Test", 1, DataContextTest.GetOneDataContext());
     }
     return(_personGender);
 }
        public void ConstructorNameNullError()
        {
            AuthorityDataType authorityDataType;

            authorityDataType = new AuthorityDataType(0,
                                                      null,
                                                      DataContextTest.GetOneDataContext());
        }
        public void ConstructorNameEmptyError()
        {
            AuthorityDataType authorityDataType;

            authorityDataType = new AuthorityDataType(0,
                                                      " ",
                                                      DataContextTest.GetOneDataContext());
        }
        public void ConstructorNameNullError()
        {
            AddressType addressType;

            addressType = new AddressType(0,
                                          null,
                                          0,
                                          DataContextTest.GetOneDataContext());
        }
        public void ConstructorNameEmptyError()
        {
            AddressType addressType;

            addressType = new AddressType(0,
                                          " ",
                                          0,
                                          DataContextTest.GetOneDataContext());
        }
        public void Constructor()
        {
            AuthorityDataType authorityDataType;

            authorityDataType = new AuthorityDataType(0,
                                                      "TestName",
                                                      DataContextTest.GetOneDataContext());
            Assert.IsNotNull(authorityDataType);
        }
        public void Constructor()
        {
            AddressType addressType;

            addressType = new AddressType(0,
                                          AddressTypeId.Home.ToString(),
                                          0,
                                          DataContextTest.GetOneDataContext());
            Assert.IsNotNull(addressType);
        }
        public void Constructor()
        {
            PasswordInformation passwordInformation;

            passwordInformation = new PasswordInformation(Settings.Default.TestUserName,
                                                          Settings.Default.TestEmailAddress,
                                                          Settings.Default.TestPassword,
                                                          DataContextTest.GetOneDataContext());
            Assert.IsNotNull(passwordInformation);
        }
 private AuthorityDataType GetAuthorityDataType(Boolean refresh)
 {
     if (_authorityDataType.IsNull() || refresh)
     {
         _authorityDataType = new AuthorityDataType(0,
                                                    "TestName",
                                                    DataContextTest.GetOneDataContext());
     }
     return(_authorityDataType);
 }
 private AddressType GetAddressType(Boolean refresh)
 {
     if (_addressType.IsNull() || refresh)
     {
         _addressType = new AddressType(0,
                                        AddressTypeId.Home.ToString(),
                                        0,
                                        DataContextTest.GetOneDataContext());
     }
     return(_addressType);
 }
 private PasswordInformation GetPasswordInformation(Boolean refresh)
 {
     if (_passwordInformation.IsNull() || refresh)
     {
         _passwordInformation = new PasswordInformation(Settings.Default.TestUserName,
                                                        Settings.Default.TestEmailAddress,
                                                        Settings.Default.TestPassword,
                                                        DataContextTest.GetOneDataContext());
     }
     return(_passwordInformation);
 }
Example #15
0
        public void Constructor()
        {
            Country country;

            country = new Country(Settings.Default.SwedishCountryId,
                                  Settings.Default.SwedishCountryISOCode,
                                  Settings.Default.SwedishCountryISOName,
                                  Settings.Default.SwedishCountryName,
                                  Settings.Default.SwedishCountryNativeName,
                                  Settings.Default.SwedishCountryPhoneNumberPrefix,
                                  DataContextTest.GetOneDataContext());
            Assert.IsNotNull(country);
        }
Example #16
0
 private Country GetCountry(Boolean refresh)
 {
     if (_country.IsNull() || refresh)
     {
         _country = new Country(Settings.Default.SwedishCountryId,
                                Settings.Default.SwedishCountryISOCode,
                                Settings.Default.SwedishCountryISOName,
                                Settings.Default.SwedishCountryName,
                                Settings.Default.SwedishCountryNativeName,
                                Settings.Default.SwedishCountryPhoneNumberPrefix,
                                DataContextTest.GetOneDataContext());
     }
     return(_country);
 }