Ejemplo n.º 1
0
 public void TestCountry()
 {
     Eventual.Model.Country country = CreateCountry();
     Assert.AreEqual(country.CountryID, 35);
     Assert.AreEqual(country.CountryAbbreviation, "SM");
     Assert.AreEqual(country.CountryLongName, "Sumike");
 }
Ejemplo n.º 2
0
 public Eventual.Model.Country CreateCountry()
 {
     Eventual.Model.Country country = new Eventual.Model.Country();
     country.CountryID           = 35;
     country.CountryAbbreviation = "SM";
     country.CountryLongName     = "Sumike";
     return(country);
 }
Ejemplo n.º 3
0
        public void TestLocation()
        {
            Eventual.Model.Location location = CreateLocation();
            Eventual.Model.Country  count    = new Eventual.Model.Country();
            Eventual.Model.State    state    = new Eventual.Model.State();

            Assert.AreEqual(location.LocationID, 11);
            Assert.IsNotNull(location.Country);
            Assert.AreEqual(location.CountryAbbreviation, "USA");
            Assert.AreEqual(location.CountryID, 1);
            Assert.AreEqual(location.LocationBuildingName, "building");
            Assert.AreEqual(location.LocationCity, "Nashville");
            Assert.IsNotNull(location.State);
            Assert.AreEqual(location.LocationStreet1, "123 street");
            Assert.AreEqual(location.LocationZipcode, "37209");
            Assert.AreEqual(location.StateAbbreviation, "TN");
            Assert.AreEqual(location.StateID, 2);
        }
Ejemplo n.º 4
0
        public Eventual.Model.Location CreateLocation()
        {
            Eventual.Model.Location location = new Eventual.Model.Location();
            Eventual.Model.Country  count    = new Eventual.Model.Country();
            Eventual.Model.State    state    = new Eventual.Model.State();

            location.LocationID           = 11;
            location.Country              = count;
            location.CountryAbbreviation  = "USA";
            location.CountryID            = 1;
            location.LocationBuildingName = "building";
            location.LocationCity         = "Nashville";
            location.LocationStreet1      = "123 street";
            location.LocationZipcode      = "37209";
            location.State             = state;
            location.StateAbbreviation = "TN";
            location.StateID           = 2;
            return(location);
        }