Esempio n. 1
0
        public ClashesSteps(ScenarioContext scenarioContext) : base(scenarioContext)
        {
            var baseAddress = new Uri(ConfigReader.BaseAddress);
            var token       = ConfigReader.AccessToken;

            _productsApi = ApiClientFactory.GetEndPoint <IProductsApi>(baseAddress, token);
        }
Esempio n. 2
0
 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));
     });
 }
Esempio n. 3
0
        public SpotsSteps(ScenarioContext scenarioContext) : base(scenarioContext)
        {
            var    baseAddress = new Uri(ConfigReader.BaseAddress);
            string token       = ConfigReader.AccessToken;

            _breakApi = ApiClientFactory.GetEndPoint <IBreaksApi>(baseAddress, token);

            ConfigureFixture();
        }