Commits

Mihai Mogosanu committed a41a0a9

Changed Order to be an int
Reformatted code using the correct style

Comments (0)

Files changed (5)

TestLibrary/MyStartupCode.cs

 
 namespace TestLibrary {
     public static class MyStartupCode {
-       
-		public static string ExecutedOrder="";
-		public static bool StartCalled { get; set; }
+
+        public static string ExecutedOrder = "";
+        public static bool StartCalled { get; set; }
         public static bool Start2Called { get; set; }
         public static bool CallMeAfterAppStartCalled { get; set; }
         public static bool CallMeWhenAppEndsCalled { get; set; }
             }
 
             StartCalled = true;
-        	ExecutedOrder += "Start";
+            ExecutedOrder += "Start";
         }
 
         public static void Start2() {
             }
 
             Start2Called = true;
-			ExecutedOrder += "Start2";
+            ExecutedOrder += "Start2";
         }
 
-		public static void Start3()
-		{
-			ExecutedOrder += "Start3";
-		}
+        public static void Start3() {
+            ExecutedOrder += "Start3";
+        }
 
         public static void CallMeAfterAppStart() {
             // This gets called after global.asax's Application_Start
             }
 
             CallMeAfterAppStartCalled = true;
-			ExecutedOrder += "CallMeAfterAppStart";
+            ExecutedOrder += "CallMeAfterAppStart";
         }
 
         public static void CallMeWhenAppEnds() {

TestWebApp/TestStartupCode/MyStartupCode.cs

 
         public static void Start() {
             StartCalled = true;
-			Debug.WriteLine("MyStartUpCode1");			
+            Debug.WriteLine("MyStartUpCode1");
         }
     }
 }

TestWebApp/TestStartupCode/MyStartupCode2.cs

 
         public static void Start() {
             StartCalled = true;
-			Debug.WriteLine("MyStartUpCode2");
+            Debug.WriteLine("MyStartUpCode2");
         }
     }
 }

WebActivator/BaseActivationMethodAttribute.cs

             }
         }
 
-		public byte Order { get; set; }
+        public byte Order { get; set; }
 
 
         public void InvokeMethod() {

WebActivatorTest/WebActivatorUnitTest.cs

             Assert.IsTrue(MyStartupCode.CallMeWhenAppEndsCalled);
         }
 
-		[TestMethod]
-		public void  TestWebActivatorMethodsCalledBySpecifiedOrder()
-		{
-			WebActivator.ActivationManager.Run();
-			WebActivator.ActivationManager.RunShutdownMethods();
-			Assert.AreEqual("StartStart3Start2CallMeAfterAppStartCallMeWhenAppEnds", MyStartupCode.ExecutedOrder);
-		}
+        [TestMethod]
+        public void TestWebActivatorMethodsCalledBySpecifiedOrder() {
+            WebActivator.ActivationManager.Run();
+            WebActivator.ActivationManager.RunShutdownMethods();
+            Assert.AreEqual("StartStart3Start2CallMeAfterAppStartCallMeWhenAppEnds", MyStartupCode.ExecutedOrder);
+        }
     }
 }