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); }
public MyOrgFormsApplication() { StartupAttributeReader.ExecuteAction(startup => startup.RegisterDependency(), IncludeAssemblyNames); StartupAttributeReader.ExecuteAction(startup => startup.OnAppStart(), IncludeAssemblyNames); }