public async void Test_Controller_Get()
        {
            var resultMany = await _controller.Get();

            var resultFail = await _controller.Get(0);

            var resultOne = await _controller.Get(1);

            Assert.NotNull(resultMany);
            Assert.NotNull(resultFail);
            Assert.NotNull(resultOne);
        }
Exemple #2
0
        public async void Test_Controller_Get()
        {
            var resultMany = await _controller.Get();

            var resultFail = await _controller.Get(0);

            var resultOne = await _controller.Get(1);

            var resultQuery = await _controller.Get(new StaySearchQueries());

            Assert.IsType <OkObjectResult>(resultMany);
            Assert.IsType <NotFoundObjectResult>(resultFail);
            Assert.IsType <OkObjectResult>(resultOne);
            Assert.IsType <OkObjectResult>(resultQuery);
        }