Exemplo n.º 1
0
 public ApiHttpService(IControllerClientFactory clientFactory)
     : base(clientFactory)
 {
     Customers = new CustomerHttpService(clientFactory);
     Orders    = new OrderHttpService(clientFactory);
     Products  = new ProductHttpService(clientFactory);
 }
Exemplo n.º 2
0
 public WebTestClient(IConfigurationRoot configurationRoot, TestServer testServer, HttpClient httpClient, IControllerClientFactory controllerClientFactory)
 {
     ConfigurationRoot       = configurationRoot;
     TestServer              = testServer;
     HttpClient              = httpClient;
     ControllerClientFactory = controllerClientFactory;
 }
Exemplo n.º 3
0
 public BaseApiClient(IControllerClientFactory clientFactory)
 {
     ClientFactory = clientFactory;
 }
Exemplo n.º 4
0
 public CustomerHttpService(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/customers")
 {
 }
Exemplo n.º 5
0
 public BaseControllerClient(IControllerClientFactory clientFactory, string controllerUri)
     : this(clientFactory.Create(controllerUri))
 {
 }
Exemplo n.º 6
0
        // TODO: VC: Where to set the base: "/posts"

        public PostsControllerClient(IControllerClientFactory clientFactory)
            : base(clientFactory, "posts")
        {
        }
Exemplo n.º 7
0
 public JsonPlaceholderClient(IControllerClientFactory controllerClientFactory)
 {
     Posts = new PostsControllerClient(controllerClientFactory);
     Todos = new TodosControllerClient(controllerClientFactory);
 }
Exemplo n.º 8
0
 public TodosControllerClient(IControllerClientFactory clientFactory)
     : base(clientFactory, "todos")
 {
 }
Exemplo n.º 9
0
 public ApiHttpService(IControllerClientFactory clientFactory)
     : base(clientFactory)
 {
     MyFoos = new MyFooHttpService(clientFactory);
 }
Exemplo n.º 10
0
 public ProductHttpService(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/products")
 {
 }
Exemplo n.º 11
0
 public CustomersControllerClient(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/customers")
 {
 }
Exemplo n.º 12
0
 public ExceptionsControllerClient(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/exceptions")
 {
 }
Exemplo n.º 13
0
 public ValuesControllerClient(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/values")
 {
 }
Exemplo n.º 14
0
 public MyFooHttpService(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/my-foos")
 {
 }
Exemplo n.º 15
0
 public OrderHttpService(IControllerClientFactory clientFactory)
     : base(clientFactory, "api/orders")
 {
 }