public void FindPurchaseOrderDetailModelTest()
        {
            var testUser    = GetTestUser();
            var testCompany = GetTestCompany(testUser, true);

            var poh = GetTestPurchaseOrderHeader(testCompany, testUser, 10);

            var podList = PurchasingService.FindPurchaseOrderDetailListModel(poh);

            Assert.IsTrue(podList != null, "Error: NULL was returned when an object was expected");

            var pod = PurchasingService.FindPurchaseOrderDetailModel(podList.Items[0].Id);

            Assert.IsTrue(podList != null, "Error: NULL was returned when an object was expected");

            // Now delete it and check it has gone
            PurchasingService.DeletePurchaseOrderDetail(pod);

            pod = PurchasingService.FindPurchaseOrderDetailModel(podList.Items[0].Id);
            Assert.IsTrue(pod == null, "Error: An object was returned when NULL was expected");
        }