Exemplo n.º 1
0
        public void GetAssessmentEventValueByAssessmentEventTransactionId_RetrievesRecord_DoesNotMatchId()
        {
            IAssessmentEventRepository assessmentEventRepository = new AssessmentEventRepository(_context, null);
            AssessmentEventValue       assessmentEventValue      = assessmentEventRepository.GetAssessmentEventValueByAssessmentEventTransactionIdAsync(AssessmentEventTransactionId + 1).Result;

            assessmentEventValue.ShouldBeNull();
        }
Exemplo n.º 2
0
        public void GetAssessmentEventValueByAssessmentEventTransactionId_RetrievesRecords_MatchesId()
        {
            IAssessmentEventRepository assessmentEventRepository = new AssessmentEventRepository(_context, null);
            AssessmentEventValue       assessmentEventValue      = assessmentEventRepository.GetAssessmentEventValueByAssessmentEventTransactionIdAsync(AssessmentEventTransactionId).Result;

            assessmentEventValue.Attribute1.ShouldBe(AssessmentEventValueBaseYear4Asmt.Attribute1);
            assessmentEventValue.Attribute2.ShouldBe(AssessmentEventValueBaseYear4Asmt.Attribute2);
            assessmentEventValue.DynCalcStepTrackingId.ShouldBe(AssessmentEventValueBaseYear4Asmt.DynCalcStepTrackingId);
            assessmentEventValue.Id.ShouldBe(AssessmentEventValueBaseYear4Asmt.Id);
            assessmentEventValue.TaxYear.ShouldBe(AssessmentEventValueBaseYear4Asmt.TaxYear);
            assessmentEventValue.ValueAmount.ShouldBe(AssessmentEventValueBaseYear4Asmt.ValueAmount);
            assessmentEventValue.ValueTypeId.ShouldBe(AssessmentEventValueBaseYear4Asmt.ValueTypeId);
            assessmentEventValue.AsmtEventTranId.ShouldBe(AssessmentEventValueBaseYear4Asmt.AsmtEventTranId);
            assessmentEventValue.Attribute2Description.ShouldBe(AssessmentEventValueBaseYear4Asmt.Attribute2Description);
        }