Пример #1
0
        public async void CreateAsyncTest()
        {
            _api.SetResult(@"
        {
          result: {
            acknowledged: true,
            shards_acknowledged: true
          }
        }
      ");

            await _indexController.CreateAsync("foo");

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