예제 #1
0
        static void Main(string[] args)
        {
            System.Console.WriteLine("Starting migration");

            var sourceAccountParams = new ClientParameters
            {
                Host = "kimambo.com",
                Port = 993,
                Password = "******",
                Username = "******",
                SSL = true
            };

            var destinationAccountParams = new ClientParameters
            {
                Host = "n1plcpnl0045.prod.ams1.secureserver.net",
                Port = 993,
                Password = "******",
                Username = "******",
                SSL = true
            };

            var sourceMailBox = new MailBox(sourceAccountParams);
            var destinationMailBox = new MailBox(destinationAccountParams);

            var migration = new MigrationService(new LogWriter(), sourceMailBox, destinationMailBox);
            migration.MigrateAccount();

            System.Console.ReadLine();
        }
        public void TestMethod1()
        {
            var sourceAccountParams = new ClientParameters
            {
                Host = "",
                Port = 993,
                Password = "",
                Username = "",
                SSL = true
            };

            var destinationAccountParams =  new ClientParameters
            {
                Host = "",
                Port = 993,
                Password = "",
                Username = "",
                SSL = true
            };

            var sourceMailBox = new MailBox(sourceAccountParams);
            var destinationMailBox = new MailBox(destinationAccountParams);

            var sut = new MigrationService(new LogWriter(),sourceMailBox, destinationMailBox );

            sut.MigrateAccount();
        }