public void API_BillAPI_GetBillData_ExpectReturnPathIllegalExpection() { // Arrange BillAPIController controller = new BillAPIController(); // Act var result = controller.GetBillData(string.Empty) as BillModel; // Assert }
public void API_BillAPI_GetBillData_ExpectModelRetured() { // Arrange BillAPIController controller = new BillAPIController(); // Act var result = controller.GetBillData(_url) as BillModel; // Assert Assert.IsNotNull(result); }
public void API_BillAPI_GetBillData_ExpectJsonDataReturned() { // Arrange BillAPIController controller = new BillAPIController(); // Act var result = controller.GetBillData(_url) as BillModel; // Assert Assert.IsNotNull(result.CallCharge); Assert.IsNotNull(result.Package); Assert.IsNotNull(result.SkyStore); Assert.IsNotNull(result.Statement); Assert.AreEqual((decimal)136.03, result.Total); }