Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var input = System.Console.ReadLine();
            IFileSystemWriter writer = new FileSystemWriter();

            writer.WriteToFile(input);
            GlobalWriter.WriteFile(input);
            System.Console.Read();
        }
Ejemplo n.º 2
0
        public async Task GetAllValues()
        {
            var client = new HttpClient();

            client.BaseAddress = new Uri(@"http://localhost:33319/");

            var response = (await client.GetAsync("api/values/0")).Content;
            var content  = (await response.ReadAsStringAsync());

            GlobalWriter.WriteFile(content);
            var writer = new FileSystemWriter();

            writer.WriteToFile(content);
            Assert.AreEqual("ramya", content);
        }