public void TestPatchContractPatchCOntractAmount() { Random rand = new Random(); var randInt = rand.Next(1, 100).ToString(); var Patch = new Patch(Settings); var Req = Patch.ContractAmount("1802e1dd-a657-428c-b8d0-ba162fc76203", randInt, "Change contract amount"); Assert.IsTrue(Req.Contains(randInt)); }
public void TestPatchContractAmountInvalidContractThrowsException() { var Patch = new Patch(Settings); Patch.ContractAmount("1802e1dd-a657-428c-b8d0", "10", "Change contract amount"); }
public void TestPatchContractAmountCommentCannotBeEmpty() { var Patch = new Patch(Settings); Patch.ContractAmount("1802e1dd-a657-428c-b8d0-ba162fc76203", "10", ""); }
public void TestPatchContractAmountPaymentCannotBeNegative() { var Patch = new Patch(Settings); Patch.ContractAmount("1802e1dd-a657-428c-b8d0-ba162fc76203", "-10", "Change contract amount"); }
public void TestPatchContractAmountPaymentAmountMustContainOnlyNumbers() { var Patch = new Patch(Settings); Patch.ContractAmount("1802e1dd-a657-428c-b8d0-ba162fc76203", "ten", "Change contract amount"); }