public void TestPatchCollectionDateMonthlyContractsPatchNextPaymentAmount() { Random rand = new Random(); var randInt = rand.Next(1, 28).ToString(); var Patch = new Patch(Settings); var Req = Patch.ContractDayMonthly("6dfb8179-2f7f-46cb-bc05-fe7f2d36bf36", randInt, "Change contract amount", true, "10.50"); Assert.IsTrue(Req.Contains(randInt)); }
public void TestPatchCollectionDateMonthlyContractsInvalidCollectionDateThrowsException() { var Patch = new Patch(Settings); Patch.ContractDayMonthly("6dfb8179-2f7f-46cb-bc05-fe7f2d36bf36", "30", "Change contract amount", false); }
public void TestPatchCollectionDateMonthlyIfNotAmendNextPaymentNextPaymentAmountMustNotBeCalled() { var Patch = new Patch(Settings); Patch.ContractDayMonthly("6dfb8179-2f7f-46cb-bc05-fe7f2d36bf36", "28", "A comment", false, "10.50"); }
public void TestPatchCollectionDateMonthlyContractsIfAmendNextPaymentPaymentAmountMustBeCalled() { var Patch = new Patch(Settings); Patch.ContractDayMonthly("6dfb8179-2f7f-46cb-bc05-fe7f2d36bf36", "28", "", true); }
public void TestPatchCollectionDateMonthlyContractsCommentCannotBeEmpty() { var Patch = new Patch(Settings); Patch.ContractDayMonthly("6dfb8179-2f7f-46cb-bc05-fe7f2d36bf36", "28", "", false); }