Example #1
0
        public void RefusalReasonIsSet()
        {
            CompletedFinancialGuarantee.Refuse(AfterCompletionDate, AnyString);

            Assert.Equal(AnyString, CompletedFinancialGuarantee.RefusalReason);
        }
Example #2
0
 public void RefusalReasonNullThrows()
 {
     Assert.Throws <ArgumentNullException>(() => CompletedFinancialGuarantee.Refuse(AfterCompletionDate, null));
 }
Example #3
0
 public void DecisionDateBeforeCompletedDateThrows()
 {
     Assert.Throws <InvalidOperationException>(
         () =>
         CompletedFinancialGuarantee.Approve(new ApprovalData(BeforeCompletionDate, BlanketBondReference, AnyInt, true, AnyDec, AnyDec)));
 }
Example #4
0
 public void RefusalReasonNullOrEmptyThrows(string refusalReason)
 {
     Assert.Throws <ArgumentException>(() => CompletedFinancialGuarantee.Refuse(AfterCompletionDate, refusalReason));
 }
Example #5
0
 public void CannotReleaseCompletedGuarantee()
 {
     Assert.Throws <InvalidOperationException>(() => CompletedFinancialGuarantee.Release(AfterCompletionDate));
 }