Esempio n. 1
0
        public ActionResult <string> Get(string name)
        {
            var greeterService = new GreeterService();
            var result         = greeterService.GetGreetText(name ?? "Micros");

            return(result);
        }
Esempio n. 2
0
        public void P_GetGreetText_WhenValidNameSent_ThenReturnsGreetText()
        {
            //Arrange
            var greeterService = new GreeterService();
            var expectedOutput = "Hello Micros!";
            //Act
            var greetText = greeterService.GetGreetText("Micros");

            //Assert
            Assert.True(greetText == expectedOutput);
        }