public void CreateUser_Test()
        {
            var client = new AccountServiceClient();

            client.CreateUser(new User {
                Username = "******", Password = "******"
            });
        }
 public void User_InsertEntity_Test()
 {
     using (var bc = new BusinessContext(new TestMode()))
     {
         var client     = new AccountServiceClient();
         var resultUser = client.CreateUser(new User()
         {
             Username = "******", Password = "******"
         });
         var config = bc.Add(new Config()
         {
             Key = "key", Value = "value", UserId = resultUser.Id
         });
         Assert.IsNotNull(config);
         Assert.IsTrue(config.Id > 0);
     }
 }
Ejemplo n.º 3
0
        public User CreateUser(User user)
        {
            var client = new AccountServiceClient();

            return(client.CreateUser(user));
        }