Exemplo n.º 1
0
        public void TestEnsureFooIsReturned()
        {
            var    fooService = new FooService();
            string foo        = fooService.GetFoo();

            Assert.Equal("Foo! Foo!", foo);
        }
Exemplo n.º 2
0
 public IActionResult Get()
 {
     System.Console.WriteLine($"{FooService.ToString()} in controller");
     return(Ok(FooService.GetFoo()));
 }