コード例 #1
0
        public void TestInitialze()
        {
            this.devHappyBuyDALMock     = new Mock <IDevHappyBuyDAL>();
            this.happyBuyRepositoryMock = new Mock <IHappyBuyRepository>();

            this.happyBuyRepository = this.happyBuyRepositoryMock.Object;
            this.dictionary         = new Dictionary <string, object>();

            this.listCustomer = new List <Customer>();
        }
コード例 #2
0
ファイル: HBCartBL.cs プロジェクト: ahamed1997/HappyMart
 /// <summary>
 /// Initializes a new instance of the <see cref="HBCartBL"/> class.
 /// </summary>
 /// <param name="happyBuyRepository">Dependency Injection.</param>
 public HBCartBL(IHappyBuyRepository happyBuyRepository)
 {
     this.happyBuyRepository = happyBuyRepository;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HBAdminBL"/> class.
 /// </summary>
 /// <param name="happyBuyRepository">Interface Injection.</param>
 public HBAdminBL(IHappyBuyRepository happyBuyRepository)
 {
     this.happyBuyRepository = happyBuyRepository;
 }
コード例 #4
0
ファイル: HBProductBL.cs プロジェクト: ahamed1997/HappyMart
 /// <summary>
 /// Initializes a new instance of the <see cref="HBProductBL"/> class.
 /// </summary>
 /// <param name="happyBuyRepository">Dependency Injection.</param>
 public HBProductBL(IHappyBuyRepository happyBuyRepository)
 {
     this.happyBuyRepository = happyBuyRepository;
 }
コード例 #5
0
ファイル: HBOrderBL.cs プロジェクト: ahamed1997/HappyMart
 /// <summary>
 /// Initializes a new instance of the <see cref="HBOrderBL"/> class.
 /// </summary>
 /// <param name="happyBuyRepository">Repository Injection.</param>
 public HBOrderBL(IHappyBuyRepository happyBuyRepository)
 {
     this.happyBuyRepository = happyBuyRepository;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HBCustomerBL"/> class.
 /// </summary>
 /// <param name="happyBuyRepository">Interface Injection.</param>
 public HBCustomerBL(IHappyBuyRepository happyBuyRepository)
 {
     this.happyBuyRepository = happyBuyRepository;
 }