public void TestMakePayment()
        {
            var builder = new Builder.PaymentModelBuilder();
            var model   = builder.WithTestValues()
                          .CardNumber(12345353435635)
                          .Build();

            var bill = new BescomBill()
            {
                BillId        = (new Random()).Next(),
                BillAmount    = 100,
                BillNo        = "23d",
                Customer      = new Customer(),
                DueDate       = DateTime.Today.Add(TimeSpan.FromDays(3)),
                GeneratedDate = DateTime.Today,
                ServiceName   = ServiceProviderType.Electicity.ToString()
            };

            Mock <IPaymentDAL> mock = new Mock <IPaymentDAL>();

            mock.Setup(e => e.MakePayment(model)).Returns(1);


            this.paymentBLL = new PaymentBLL(mock.Object, new ServiceProviderFactory());


            var result = this.paymentBLL.MakePayment(model, ServiceProviderType.Electicity, bill);

            Assert.IsNotNull(result);
        }
        public void TestMakePayment()
        {
            var builder = new Builder.PaymentModelBuilder();
            var model   = builder.WithTestValues()
                          .CardNumber(12345353435635)
                          .Build();
            var bill = new BLL.BescomBill()
            {
                BillId        = (new Random()).Next(),
                BillAmount    = 100,
                BillNo        = "23d",
                Customer      = new BLL.Customer(),
                DueDate       = DateTime.Today.Add(TimeSpan.FromDays(3)),
                GeneratedDate = DateTime.Today,
                ServiceName   = BLL.ServiceProviderType.Electicity.ToString()
            };

            var result = this.paymentController.MakePayment(model, BLL.ServiceProviderType.Electicity, bill);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.StatusCode == System.Net.HttpStatusCode.OK);
        }