Ejemplo n.º 1
0
 public void SaveMitchellClaim_Test()
 {
     //Arrange
     var controller = new ValuesController();
     //Act
     bool retVal = controller.Get();
     //Assert
     //Assert.IsNotNull(retVal);
     Assert.AreEqual(true, retVal);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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>);
 }