Ejemplo n.º 1
0
        public void CorrectRequestForValidateName()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new ContainerRegistryClient(factory);

            var data = new ContainerRegistryValidateName();

            client.ValidateName(data);
            factory.Received().ExecuteRaw("registry/validate-name", null, data, Method.POST);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Validates a container registry name.
 /// </summary>
 public Task ValidateName(ContainerRegistryValidateName containerRegistryValidateName)
 {
     return(_connection.ExecuteRaw("registry/validate-name", null, containerRegistryValidateName, Method.POST));
 }