public void SaveMitchellClaim_Test() { //Arrange var controller = new ValuesController(); //Act bool retVal = controller.Get(); //Assert //Assert.IsNotNull(retVal); Assert.AreEqual(true, retVal); }
public void GetClaimByID_Test() { //Arrange var controller = new ValuesController(); //Act MitchellClaim.Models.ClaimType retResult = controller.Get(1); //Assert //Assert.IsNotNull(retVal); Assert.IsTrue(retResult is MitchellClaim.Models.ClaimType); }
public void GetVehicle_Test() { //Arrange var controller = new ValuesController(); int claimID = 1; int vehicleID = 1; //Act MitchellClaim.Models.VehicleInfoType retResult = controller.Get(claimID, vehicleID); //Assert //Assert.IsNotNull(retVal); Assert.IsTrue(retResult is MitchellClaim.Models.VehicleInfoType); }
public void GetClaimByDateRange_Test() { //Arrange var controller = new ValuesController(); DateTime start = new DateTime(2014, 7, 1); DateTime end = new DateTime(2014,7,15); //Act List<MitchellClaim.Models.ClaimType> retResults = controller.Get(start,end); //Assert //Assert.IsNotNull(retVal); Assert.IsTrue(retResults is List<MitchellClaim.Models.ClaimType>); }