public ClashesSteps(ScenarioContext scenarioContext) : base(scenarioContext) { var baseAddress = new Uri(ConfigReader.BaseAddress); var token = ConfigReader.AccessToken; _productsApi = ApiClientFactory.GetEndPoint <IProductsApi>(baseAddress, token); }
private static void RegisterApiEndpointInternal <T>(IObjectContainer objectContainer) { objectContainer.RegisterFactoryAs <T>(oc => { var configReader = oc.Resolve <ConfigurationReader>(); return(ApiClientFactory.GetEndPoint <T>(new Uri(configReader.BaseAddress), configReader.AccessToken)); }); }
public SpotsSteps(ScenarioContext scenarioContext) : base(scenarioContext) { var baseAddress = new Uri(ConfigReader.BaseAddress); string token = ConfigReader.AccessToken; _breakApi = ApiClientFactory.GetEndPoint <IBreaksApi>(baseAddress, token); ConfigureFixture(); }