private void TestApproval(Approver approver, double min, double max = double.MaxValue) { var amount = GetRandom.Double(min, max); var p = new Purchase(number, amount, purpose); department.Approve(p, logBook); Assert.AreEqual(approver.ApprovalMsg(number, purpose), logBook.ReadLine()); }