public OrderRepository(ICustomerAccessor customers, IProductAccessor products) : this() { _customers = customers ?? throw new ArgumentException(nameof(customers)); _products = products ?? throw new ArgumentException(nameof(products)); }
public CustomerManager() { _customerAccessor = new CustomerAccessor(); }
public void TestSetup() { _fakeCustomerAccessor = new FakeCustomerAccessor(); _customerManager = new CustomerManager(_fakeCustomerAccessor); }
public void TestTearDown() { _fakeCustomerAccessor = null; }
public CustomersController(ICustomerAccessor customerAccessor) { _customerAccessor = customerAccessor; }
/// <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; }
public CustomerController(ICustomerAccessor customers) : base() { _customers = customers ?? throw new ArgumentException(nameof(customers)); }