Esempio n. 1
0
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion

        public static Location CreateLocation()
        {
            Location target = new Location()
            {
            };
            return target;
        }
Esempio n. 2
0
        public static Location CreateLocationFromReader(IDnaDataReader reader)
        {
            Location location = new Location();
            location.Description = reader.GetStringNullAsEmpty("description");
            location.Title = reader.GetStringNullAsEmpty("title");

            location.LocationId = reader.GetInt32NullAsZero("locationid");
            location.OwnerID = reader.GetInt32NullAsZero("ownerid");
            location.SiteID = reader.GetInt32NullAsZero("siteid");
            //location.GeoId = reader.GetInt32NullAsZero("GeoId");

            location.CreatedDate = reader.GetDateTime("CreatedDate");

            return location;
        }