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(); } } }
Yup. I have 3 separate projects in one solution (NUnit, Console and MSTest). Below is the source code for NUnit.
using System; Dynamics. BusinessConnect orNet;
using System.Net;
using Microsoft.
using NUnit.Framework;
namespace ClassLibrary1
Axapta ax = new Axapta();
ax.LogonAs( "User1" , "Globe", new NetworkCredenti al("User1" , "pwd", "Globe"), default(string),
default( string) , "devaos2:2714", default(string));
ax.Logoff( );
{
[TestFixture]
public class Class1
{
[Test]
public void Test()
{
}
}
}