To simplify use in projects that use DI (like asp.net core web apps) and to make it easier to inject mock implementations for testing, etc., AutomationFactory (and a service refactored from Program in #1) could be made singletons with injectable constructors with no static methods.
To simplify use in projects that use DI (like asp.net core web apps) and to make it easier to inject mock implementations for testing, etc., AutomationFactory (and a service refactored from Program in #1) could be made singletons with injectable constructors with no static methods.