public ProductController(IProductApiClient productApiClient, ICategoryApiClient categoryApiClient,
                          IBrandApiClient brandApiClient, IConfiguration config)
 {
     _productApiClient  = productApiClient;
     _categoryApiClient = categoryApiClient;
     _brandApiClient    = brandApiClient;
     _config            = config;
 }
        private void AuthorizationTestForm_Load(object sender, EventArgs e)
        {
            tabControl1.SelectedTab = tabGetToken;

            _credentials = new Dictionary<string, ClientCredential>();
            _credentials.Add("BRAND_3", new ClientCredential { ClientId = "BRAND_3", ClientSecret = "w0jdfZGyDB3gWFJqGsBCTO3E7liTDgYoVrCaP7t13JMzryNIuKA3G2" });
            _credentials.Add("SSS", new ClientCredential { ClientId = "SSS", ClientSecret = "xVskIE6tVczOZ5OVxcypvaHg1w5ycV116hvmFdKXnEBdWCQu91uSug" });

            _credentials.Keys.AsEnumerable().Each(item => cboClientName.Items.Add(item));
            cboClientName.SelectedIndex = 0;

            _apiClient = new BrandApiClient(ServerBaseUrl);

            this.Text += " - " + ServerBaseUrl;
        }
 public BrandMenuViewComponent(IBrandApiClient brandApiClient)
 {
     _brandApiClient = brandApiClient;
 }
Exemple #4
0
 public BrandController(IBrandApiClient brandApiClient)
 {
     _brandApiClient = brandApiClient;
 }
 public BrandController(IBrandApiClient brandApiClient, IProductApiClient productApiClient)
 {
     _brandApiClient   = brandApiClient;
     _productApiClient = productApiClient;
 }