Exemplo n.º 1
0
 public void Scan(Assembly stepsAssembly)
 {
     foreach (var type in StepsClasses.FindInAssemblyAndReferencedAssemblies(stepsAssembly))
     {
         Scan(type);
     }
 }
Exemplo n.º 2
0
 public async Task ExecuteAfterRun()
 {
     foreach (var stepsClass in StepsClasses.FindInAssemblyAndReferencedAssemblies(assembliesToScan))
     {
         foreach (var method in FindMethodsWithAttribute <AfterRunAttribute>(stepsClass))
         {
             await ExecuteMethod(stepsClass, method)
             .ConfigureAwait(false);
         }
     }
 }