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(); }
private static AccountsApiServiceClient GetWcfClient() { AccountsApiServiceClient client = new AccountsApiServiceClient("Secure_AccountsApiService"); client.ClientCredentials.UserName.UserName = UserName; client.ClientCredentials.UserName.Password = Password; return client; }