Make it workie
This commit is contained in:
@@ -1,2 +1,33 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine("Hello, World!");
|
||||
using ConsoleApp1;
|
||||
|
||||
internal class Program
|
||||
{
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
ISystem system1 = new ConsoleApp1.System("YouLikeToBreakYourSystemDontYa? Linux", "v1.0.0", "SN123");
|
||||
|
||||
Program.SystemTest(system1);
|
||||
}
|
||||
|
||||
static void SystemTest(ISystem sys)
|
||||
{
|
||||
Program.Advertise(sys);
|
||||
|
||||
if (sys.Start())
|
||||
{
|
||||
Console.WriteLine("[TEST] System running!");
|
||||
}
|
||||
|
||||
sys.Restart();
|
||||
|
||||
if (sys.Quit())
|
||||
{
|
||||
Console.WriteLine("[TEST] System quit!");
|
||||
}
|
||||
}
|
||||
|
||||
static void Advertise(ISystem sys)
|
||||
{
|
||||
Console.WriteLine($"Behold! The '{sys.Name}' is coming!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user