Esempio n. 1
0
        public void LoginNotExistsTest()
        {
            var builtDTO = _util.BuildUniqueCustomerDTO();

            _client.Register(builtDTO);
            Assert.IsTrue(_client.LoginExists(builtDTO.Login));
        }
Esempio n. 2
0
 public CustomerDTO Register(CustomerDTO customer)
 {
     return(ToClientDTO(_client.Register(ToServiceDTO(customer))));
 }
Esempio n. 3
0
        public CustomerDTO GetAuthorizedCustomerDTO()
        {
            var registered = _client.Register(BuildUniqueCustomerDTO());

            return(_client.Login(registered.Login, registered.Password));
        }