Exemplo n.º 1
0
        public async void ExistsAsyncTest(bool result)
        {
            _api.SetResult(new JObject {
                { "result", result }
            });

            Assert.Equal(
                result,
                await _indexController.ExistsAsync("foo")
                );

            _api.Verify(new JObject {
                { "controller", "index" },
                { "action", "exists" },
                { "index", "foo" }
            });
        }