コード例 #1
0
        public void GetAllClaimFieldsOperatorsTest()
        {
            Mock <IReportSelectionRepository> reportSelectionRepository = new Mock <IReportSelectionRepository>();
            ReportSelectionLogic      target = new ReportSelectionLogic(reportSelectionRepository.Object);
            List <ClaimFieldOperator> claimFieldOperators = new List <ClaimFieldOperator>
            {
                new ClaimFieldOperator {
                    FacilityId = 1
                }
            };

            reportSelectionRepository.Setup(f => f.GetAllClaimFieldsOperators()).Returns(claimFieldOperators);
            List <ClaimFieldOperator> actual = target.GetAllClaimFieldsOperators();

            Assert.IsNotNull(actual);
        }
コード例 #2
0
 /// <summary>
 /// Gets all ClaimField Operators.
 /// </summary>
 /// <returns></returns>
 public List <ClaimFieldOperator> GetAllClaimFieldsOperators()
 {
     return(_reportSelectionLogic.GetAllClaimFieldsOperators());
 }