public RaceServiceProxy(IConfigurationManager configurationManager, IHttpHandler httpHandler, IMapper mapper, ICustomerBetServiceProxy customerBetServiceProxy) { _configrationManager = configurationManager; _httpHandler = httpHandler; _mapper = mapper; _customerBetServiceProxy = customerBetServiceProxy; }
public CustomerBetServiceProxyTests() { var configurationManager = new Mock <IConfigurationManager>(); var httpHandler = new Mock <IHttpHandler>(); _mapper = new Mock <IMapper>(); httpHandler.Setup(a => a.GetString("test")).Returns("[{\"customerId\": 1,\"raceId\": 1}]"); configurationManager.Setup(a => a.RaceServiceUrl).Returns("test"); _customerBetServiceProxy = new CustomerBetServiceProxy(configurationManager.Object, httpHandler.Object, _mapper.Object); }
public CustomerBetsController(ICustomerBetServiceProxy customerBetServiceProxy) { _customerBetServiceProxy = customerBetServiceProxy; }