Example #1
0
        public void GetItem_FullPopulate()
        {
            using (TransactionScope ts = new TransactionScope())
            {
                TrunkerDay trunkerDay = PopulateNewItem();
                trunkerDay.Id = SaveItem(trunkerDay);

                if (trunkerDay.Id != -1)
                {
                    Assert.IsNotNull(TrunkerDaysController.GetTrunkerDay(trunkerDay.Id, true).DestinationWarehouse);
                }
            }
        }
Example #2
0
        public void GetItem()
        {
            using (TransactionScope ts = new TransactionScope())
            {
                TrunkerDay trunkerDay = PopulateNewItem();
                trunkerDay.Id = SaveItem(trunkerDay);

                if (trunkerDay.Id != -1)
                {
                    Assert.IsNotNull(TrunkerDaysController.GetTrunkerDay(trunkerDay.Id, false));
                }
            }
        }