/// <summary> /// Sets up the <code>MailItemService</code> based on the provided arguments. /// </summary> /// <param name="args">arguments passed to the program</param> private static void Initialize(string[] args) { domain = args[0]; adminUsername = args[1]; adminPassword = args[2]; if (args.Length > 3) { destinationUser = args[3]; } else { destinationUser = adminUsername; } mailItemService = new MailItemService(domain, "Sample Migration Application"); mailItemService.setUserCredentials(adminUsername + "@" + domain, adminPassword); }
public void Init() { service = new MailItemService("example.com", "GApps Unit Test"); }