예제 #1
0
        public void ClaimFieldLogicConstructorTest()
        {
            var target = new ClaimFieldLogic(Constants.ConnectionString);

            //Assert
            Assert.IsInstanceOfType(target, typeof(ClaimFieldLogic));
        }
예제 #2
0
        public void ClaimFieldLogicConstructorTest2()
        {
            Mock <IClaimFieldRepository> mockClaimFieldRepository = new Mock <IClaimFieldRepository>();
            ClaimFieldLogic target = new ClaimFieldLogic(mockClaimFieldRepository.Object);

            Assert.IsInstanceOfType(target, typeof(ClaimFieldLogic));
        }
예제 #3
0
        private ClaimFieldController()
        {
            int    facilityId       = Convert.ToInt32(System.Web.HttpContext.Current.Request.Headers[Constants.BubbleDataSource]);
            string bubbleDataSource = GetFacilityConnection(facilityId);

            _claimFieldLogic = new ClaimFieldLogic(bubbleDataSource);
        }
예제 #4
0
        public void GetClaimFieldsByModuleTest()
        {
            var       mockClaimFieldLogic = new Mock <IClaimFieldRepository>();
            const int value = 2;

            mockClaimFieldLogic.Setup(f => f.GetClaimFieldsByModule(value)).Returns(new List <ClaimField>());
            ClaimFieldLogic   target = new ClaimFieldLogic(mockClaimFieldLogic.Object);
            List <ClaimField> actual = target.GetClaimFieldsByModule(value);
            const int         result = 0;

            Assert.AreEqual(result, actual.Count);
        }