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