コード例 #1
0
ファイル: EntryPoint.cs プロジェクト: cohen990/cell
 static void RegisterCells()
 {
     EndocrineSystem.RegisterBinding(new Base64EncodingCell());
     EndocrineSystem.RegisterBinding(new InputValidationCell());
     EndocrineSystem.RegisterBinding(new WriteOutputCell());
     EndocrineSystem.RegisterBinding(new HormoneLoggingCell());
 }
コード例 #2
0
ファイル: EntryPoint.cs プロジェクト: cohen990/cell
        static void Main()
        {
            RegisterCells();
            Console.Write("Input: ");
            var input = Console.ReadLine();

            var inputReceived = new InputReceivedHormone(input);

            EndocrineSystem.Inject(inputReceived);
        }