PageRenderTime 52ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/1.31/src/Tests/SetupFixture.cs

#
C# | 47 lines | 38 code | 5 blank | 4 comment | 0 complexity | 25f46b23e735b669c9bf3ebc2f2dafdc MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1
  1. /// Copyright (c) 2008 by eunge.liu@gmail.com. All Rights Reserved.
  2. // Information Contained Herein is Proprietary and Confidential.
  3. // $Id: SetupFixture.cs 385 2009-11-11 10:39:23Z eungeliu $
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Data.Linq;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Transactions;
  11. using System.Web.UI;
  12. using System.Web.UI.WebControls;
  13. using System.Xml;
  14. using System.Xml.Schema;
  15. using BaoJianSoft.Common;
  16. using BaoJianSoft.Platform;
  17. using BaoJianSoft.Platform.Initialization;
  18. using BaoJianSoft.Platform.Linq;
  19. using BaoJianSoft.RapidWeb;
  20. using BaoJianSoft.RapidWeb.Controls;
  21. using BaoJianSoft.RapidWeb.DynamicPages;
  22. using NUnit.Framework;
  23. using AspNetMembership = System.Web.Security.Membership;
  24. namespace BaoJianSoft.Tests
  25. {
  26. [SetUpFixture]
  27. public class SetupFixture
  28. {
  29. [SetUp]
  30. public virtual void GlobalSetup()
  31. {
  32. Console.Out.WriteLine("************Global Setup Started! ************\r\n");
  33. SpringContext.Current.GetObject<IInstallerManager>().Install(AspNetMembership.ApplicationName);
  34. Console.Out.WriteLine("\r\n************Global Setup Done! ************\r\n");
  35. }
  36. [TearDown]
  37. public virtual void GlobalTearDown()
  38. {
  39. // TODO:
  40. }
  41. }
  42. }