Source/Csla.test/ObjectFactory/ObjectFactoryTests.cs
/// <summary>
/// Always make sure to cleanup after each test 
/// </summary>
Always make sure to cleanup after each test
Always make sure to cleanup after each test
[TestCleanup]
    public void Cleanup()
    {
      Csla.ApplicationContext.User = new System.Security.Principal.GenericPrincipal(
          new System.Security.Principal.GenericIdentity(string.Empty), new string[] { });
      Csla.ApplicationContext.DataPortalProxy = "Local";
      Csla.DataPortal.ResetProxyType();
      Csla.Server.FactoryDataPortal.FactoryLoader = null;
      Csla.ApplicationContext.GlobalContext.Clear();
    }
[ TestCleanup ] public void Cleanup ( ) { Csla . ApplicationContext . User = new System . Security . Principal . GenericPrincipal ( new System . Security . Principal . GenericIdentity ( string . Empty ) , new string [ ] { } ) ; Csla . ApplicationContext . DataPortalProxy = " " ; Csla . DataPortal . ResetProxyType ( ) ; Csla . Server . FactoryDataPortal . FactoryLoader = null ; Csla . ApplicationContext . GlobalContext . Clear ( ) ; }
Always make sure to cleanup after each test
Always make sure to cleanup after each test