示例#1
0
        public void ExecuteActionTest()
        {
            StartupAttributeReader.ExecuteAction(startup => startup.RegisterDependency());
            StartupAttributeReader.ExecuteAction(startup => startup.RegisterDependency());

            StartupAttributeReader.ExecuteAction(startup => startup.OnAppStart());
            StartupAttributeReader.ExecuteAction(startup => startup.OnAppStart());
            StartupAttributeReader.ExecuteAction(startup => startup.OnAppStart());

            Assert.AreEqual(2, RegisterDependency);
            Assert.AreEqual(3, OnAppStart);
        }
示例#2
0
 public MyOrgFormsApplication()
 {
     StartupAttributeReader.ExecuteAction(startup => startup.RegisterDependency(), IncludeAssemblyNames);
     StartupAttributeReader.ExecuteAction(startup => startup.OnAppStart(), IncludeAssemblyNames);
 }