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); } } }
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)); } } }