public CustomersController(ICustomersGetterService customersServices, ICustomersAdderService customersAdderService, IRequestValidationService requestValidationService) { if (customersServices == null) { throw new ArgumentNullException(nameof(customersServices)); } if (customersAdderService == null) { throw new ArgumentNullException(nameof(customersAdderService)); } if (requestValidationService == null) { throw new ArgumentNullException(nameof(requestValidationService)); } _customersService = customersServices; _customersAdderService = customersAdderService; _requestValidationService = requestValidationService; }
public void Setup() { _peopleGetterService = new CustomersGetterService(new CustomerStubRepository(), new PeopleStubRepository(), new StoreStubRepository()); MappingConfiguration.Start(); }