public void AllTest() { IBussinesLogicEmployees iBLExternal = null; iBLExternal = (IBussinesLogicEmployees)CodeInjection.Create( new BussinesLogicEmployees(), typeof(IBussinesLogicEmployeesAll)); Employees dsE = null; dsE = iBLExternal.GetEmployees(BussinesLogicEmployees.Delegation.Madrid); Assert.IsNotNull(dsE); Assert.AreEqual(1, CountingCalls.Calls("GetEmployees")); try { dsE = iBLExternal.GetEmployees(BussinesLogicEmployees.Delegation.Paris); } catch { dsE = null; } Assert.IsNull(dsE); Assert.AreEqual(2, CountingCalls.Calls("GetEmployees")); dsE = iBLExternal.GetEmployees(BussinesLogicEmployees.Delegation.London); Assert.IsNotNull(dsE); Assert.AreEqual(3, CountingCalls.Calls("GetEmployees")); }
public void TestCleanup() { CountingCalls.Clear("GetEmployees"); }