示例#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);
                }
            }
        }
示例#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));
                }
            }
        }