public OrderRepository(ICustomerAccessor customers, IProductAccessor products)
            : this()
        {
            _customers = customers ?? throw new ArgumentException(nameof(customers));

            _products = products ?? throw new ArgumentException(nameof(products));
        }
Пример #2
0
 public CustomerManager()
 {
     _customerAccessor = new CustomerAccessor();
 }
 public void TestSetup()
 {
     _fakeCustomerAccessor = new FakeCustomerAccessor();
     _customerManager      = new CustomerManager(_fakeCustomerAccessor);
 }
 public void TestTearDown()
 {
     _fakeCustomerAccessor = null;
 }
Пример #5
0
 public CustomersController(ICustomerAccessor customerAccessor)
 {
     _customerAccessor = customerAccessor;
 }
Пример #6
0
 /// <summary>
 /// Creator: Mohamed Elamin
 /// Created: 2020/02/19
 /// Approver: Thomas Dupuy , 2020/02/19
 ///
 /// This method is a constructor for the Customer
 /// Manager.
 /// </summary>
 ///
 /// <remarks>
 /// Updater Name
 /// Updated: yyyy/mm/dd
 /// Update: ()
 /// </remarks>
 /// <param name="ICustomerAccessor"></param>
 /// <param name="customerAccessor"></param>
 /// <returns></returns>
 public CustomerManager(ICustomerAccessor customerAccessor)
 {
     _customerAccessor = customerAccessor;
 }
Пример #7
0
 public CustomerController(ICustomerAccessor customers)
     : base()
 {
     _customers = customers ?? throw new ArgumentException(nameof(customers));
 }