public ProductRepository(IConfigurationService config,ILocationHandlerFactory locationHandlerFactory) { if (config == null) { throw new ArgumentNullException("config"); } _config = config; _locationHandlerFactory = locationHandlerFactory; if (locationHandlerFactory == null) { throw new ArgumentNullException("locationHandlerFactory"); } _locationHandlerFactory = locationHandlerFactory; }
public void Initialise() { _configurationService = new Configuration(); _locationHandlerFactory=new LocationHandlerFactory() ; _sut = new ProductRepository(_configurationService,_locationHandlerFactory); }