Example #1
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += PrintUnhandledException;

            _client = GetWcfClient();

            ApiAccount account = CreateAccount();

            UpdateTheme(account);

            CreateManagedUser(account);

            CreateApiUser(account);

            Console.WriteLine("Press enter to exit");
            Console.ReadLine();
        }
Example #2
0
 private static AccountsApiServiceClient GetWcfClient()
 {
     AccountsApiServiceClient client = new AccountsApiServiceClient("Secure_AccountsApiService");
     client.ClientCredentials.UserName.UserName = UserName;
     client.ClientCredentials.UserName.Password = Password;
     return client;
 }