Comment 22 for bug 1064804

Revision history for this message
Mun Wai Chan (munwai) wrote :

Yup. I have 3 separate projects in one solution (NUnit, Console and MSTest). Below is the source code for NUnit.

using System;
using System.Net;
using Microsoft.Dynamics.BusinessConnectorNet;
using NUnit.Framework;

namespace ClassLibrary1
{
    [TestFixture]
    public class Class1
    {
        [Test]
        public void Test()
        {
                Axapta ax = new Axapta();
                ax.LogonAs("User1", "Globe", new NetworkCredential("User1", "pwd", "Globe"), default(string),
                           default(string), "devaos2:2714", default(string));
                ax.Logoff();
        }
    }
}