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

            _productsApi = ApiClientFactory.GetEndPoint <IProductsApi>(baseAddress, token);
        }
Exemple #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));
     });
 }
Exemple #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();
        }