Exemplo n.º 1
0
        public async Task Abilities()
        {
            var controller = new AbilitiesController();
            var list       = await controller.Get();

            Assert.IsTrue(list.Count > 0);
        }
        public async Task Test3GetOne()
        {
            AbilitiesController controller = new AbilitiesController(_context, null);
            IActionResult       result     = await controller.Get(this.id);

            OkObjectResult ok = result as OkObjectResult;

            Assert.NotNull(ok);
            Assert.Equal(200, ok.StatusCode);
        }
        public void Test1GetAll()
        {
            AbilitiesController    controller = new AbilitiesController(_context, null);
            CollectionRequestModel collection = new CollectionRequestModel();
            IActionResult          a          = controller.Get(collection);

            OkObjectResult ok = a as OkObjectResult;

            Assert.NotNull(ok);
            Assert.Equal(200, ok.StatusCode);
        }