public void Test_DeleteTransportationInf_Return_Shipping_And_ViewName_Correct()
        {
            //Arrage
            var transportationInf = MockTransportationInf();
            var mockTruckDriver   = new Mock <ITruckDriverRepository>();
            var mockJob           = new Mock <IJobAssignmentRepository>();

            var mockTrans = new Mock <ITransportationInfRepository>();

            mockTrans.Setup(m => m.GetTransportationInfById(transportationInf.ShippingId)).Returns(transportationInf);

            var controller = new TransportationInfController(mockTrans.Object, mockJob.Object, mockTruckDriver.Object);

            // Act
            var result   = controller.DeleteTransportationInf(1) as ViewResult;
            var viewName = result.ViewName;

            // Assert
            Assert.AreEqual(viewName, "DeleteTransportationInf");
        }
        public void Test_DeleteTransportationInf_Return_HttpNotFound_When_TransRepo_Equal_Null()
        {
            //Arrage
            var transportationInf = MockTransportationInf();
            var mockTruckDriver   = new Mock <ITruckDriverRepository>();
            var mockJob           = new Mock <IJobAssignmentRepository>();

            var mockTrans = new Mock <ITransportationInfRepository>();

            mockTrans.Setup(m => m.GetTransportationInfById(transportationInf.ShippingId)).Returns(transportationInf);

            var controller = new TransportationInfController(mockTrans.Object, mockJob.Object, mockTruckDriver.Object);

            // Act
            var result         = controller.DeleteTransportationInf(5) as ActionResult;
            var shippingIdNull = new HttpNotFoundResult();

            // Assert
            Assert.AreEqual(result.ToString(), shippingIdNull.ToString());
        }