Exemple #1
0
        public void PrintGreeting_ReturnGreeting_WhenInitialized()
        {
            var console = new HelloWorldAPI.Console();

            console.PrintGreeting = "Hello World";
            var result = console.PrintGreeting;

            Assert.That(console.PrintGreeting.Equals(result));
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var writeLocation = ConfigurationManager.AppSettings["WriteToDB"];

            var thisConsole = new HelloWorldAPI.Console();

            thisConsole.WriteDbConfig = writeLocation;
            thisConsole.PrintGreeting = "Hello World";

            System.Console.WriteLine(thisConsole.PrintGreeting);
            //  System.Console.Write(thisConsole.WriteDbConfig);

            System.Console.ReadKey();
        }