This repo is now obsolete. https://github.com/MichaelPuckett2/Specky is the replacement.
-
Introduce a Speck.
[Speck] public class Log { public void Print(string message) { Console.WriteLine(message); } }
-
Introduce a Speck to a Speck.
[Speck] public class Worker { [SpeckAuto] readonly Log log; }
-
Start when introductions are complete.
[SpeckAuto] readonly Log log; [SpeckPost] public void Start() { Log.Print("Working..."); //... }
-
Add Configurations.
[SpeckConfiguration("Test")] class TestConfiguration { readonly string Reason = "Testing"; readonly List<string> Names = new List<string>() { "Mathew", "Mark", "Luke", "John" }; }
-
Set Configurations.
[SpeckConfigurationAuto] public List<string> Names { get; }
-
Choose Configuration on startup.
SpeckAutoStrapper.Start(configuration: "Test");