using ApplicationServices.AppServiceInterfaces; using ApplicationServices.AppServiceClasses; using PeocitEntities.MasterEntities; namespace MyUnitTest { [TestFixture] public class Account_Group { AccountGroupApplnService accApplicationServiceObject; [TestFixtureSetUp] public void SetupTest() { accApplicationServiceObject = new AccountGroupApplnService();//Here iam getting error } [Test] public void AddAccountGroup() { AccountGroup accountGroupObj = new AccountGroup(); accountGroupObj.strName = "Test TDD Group"; accountGroupObj.intGroupType = 10; accountGroupObj.groupType_name = Enum.GetName(typeof(EnumTypelib.glAccountGroupTypes), accountGroupObj.intGroupType); accountGroupObj.intPrimaryGroup = (int)EnumTypelib.PrimaryGroupType.as_liabilities; bool IsGroupAccountCreated = accApplicationServiceObject.CreateAccountGroup(accountGroupObj);//Internally calls service & then infra layer. Assert.True(IsGroupAccountCreated); } [TestFixtureTearDown] public void TearDownTest() { accApplicationServiceObject = null; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)