/// <summary>
        /// Initializes a new instance of the <see cref="MedicareIpAcuteOptionController"/> class.
        /// </summary>
        public MedicareIpAcuteOptionController()
        {
            int    facilityId       = Convert.ToInt32(System.Web.HttpContext.Current.Request.Headers[Constants.BubbleDataSource]);
            string bubbleDataSource = GetFacilityConnection(facilityId);

            _medicareIpAcuteOptionLogic = new MedicareIpAcuteOptionLogic(bubbleDataSource);
        }
Exemplo n.º 2
0
        public void PaymentTypeMedicareIpDetailsConstructorUnitTest2()
        {
            var mockMedicareIpAcuteOption     = new Mock <IMedicareIpAcuteOptionRepository>();
            MedicareIpAcuteOptionLogic target = new MedicareIpAcuteOptionLogic(mockMedicareIpAcuteOption.Object);

            Assert.IsInstanceOfType(target, typeof(MedicareIpAcuteOptionLogic));
        }
Exemplo n.º 3
0
        public void MedicareIpAcuteOptionConstructorUnitTest1()
        {
            var target = new MedicareIpAcuteOptionLogic(Constants.ConnectionString);

            //Assert
            Assert.IsInstanceOfType(target, typeof(MedicareIpAcuteOptionLogic));
        }
Exemplo n.º 4
0
        public void GetMedicareIpAcuteOptionsIsInstanceOfTypeTest()
        {
            var mockGetMedicareIpAcuteOption     = new Mock <IMedicareIpAcuteOptionRepository>();
            List <MedicareIpAcuteOption> results = new List <MedicareIpAcuteOption>();

            mockGetMedicareIpAcuteOption.Setup(f => f.GetMedicareIpAcuteOptions()).Returns(results);
            MedicareIpAcuteOptionLogic   target = new MedicareIpAcuteOptionLogic(mockGetMedicareIpAcuteOption.Object);
            List <MedicareIpAcuteOption> actual = target.GetMedicareIpAcuteOptions();

            Assert.IsInstanceOfType(actual, typeof(List <MedicareIpAcuteOption>));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MedicareIpAcuteOptionController"/> class.
 /// </summary>
 /// <param name="medicareIpAcuteOptionLogic">The medicare ip acute option logic.</param>
 public MedicareIpAcuteOptionController(MedicareIpAcuteOptionLogic medicareIpAcuteOptionLogic)
 {
     _medicareIpAcuteOptionLogic = medicareIpAcuteOptionLogic;
 }