Beispiel #1
0
        public void DoesNotOverrideDecisionDate()
        {
            var previousDecisionDate = ApprovedFinancialGuarantee.DecisionDate.Value;
            var afterDecisionDate    = previousDecisionDate.AddDays(1);

            ApprovedFinancialGuarantee.Release(afterDecisionDate);

            Assert.Equal(previousDecisionDate, ApprovedFinancialGuarantee.DecisionDate);
        }
Beispiel #2
0
        public void ReleaseApprovedRetainsDecision()
        {
            ApprovedFinancialGuarantee.Release(AfterCompletionDate);

            Assert.Equal(FinancialGuaranteeDecision.Approved, ApprovedFinancialGuarantee.Decision);
        }
Beispiel #3
0
        public void CanReleaseAnApprovedGuarantee()
        {
            ApprovedFinancialGuarantee.Release(AfterCompletionDate);

            Assert.Equal(FinancialGuaranteeStatus.Released, ApprovedFinancialGuarantee.Status);
        }
Beispiel #4
0
        public void SetsReleasedDate()
        {
            ApprovedFinancialGuarantee.Release(AfterCompletionDate);

            Assert.Equal(AfterCompletionDate, ApprovedFinancialGuarantee.ReleasedDate);
        }
Beispiel #5
0
 public void DecisionDateBeforeCompletionDateThrows()
 {
     Assert.Throws <InvalidOperationException>(() => ApprovedFinancialGuarantee.Release(BeforeCompletionDate));
 }