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

            ApprovedFinancialGuarantee.Release(afterDecisionDate);

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

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

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

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