Ejemplo n.º 1
0
        public void Test_Return_Get()
        {
            //Instantiate a new HelloWorldRepository
            HelloWorldRepository hrd = new Data.HelloWorldRepository();

            //Instantiate a new HelloWorldRepository
            HelloWorldController controller = new HelloWorldApi.Controllers.HelloWorldController(hrd);
            //Arrange

            //Act
            var result = controller.Get();

            //Asset
            Assert.IsNotNull(result);
        }
Ejemplo n.º 2
0
        public void Test_Get()
        {
            //Instantiate a new HelloWorldRepository
            HelloWorldRepository hrd = new Data.HelloWorldRepository();

            //Instantiate a new HelloWorldRepository
            HelloWorldController controller = new HelloWorldApi.Controllers.HelloWorldController(hrd);
            //Arrange
            var expected = "Hello World";

            //Act
            var result = controller.Get();

            //Asset
            Assert.AreEqual(expected, result);
        }