コード例 #1
0
        public async void CreateAsyncTest(JObject mappings)
        {
            _api.SetResult(@"{result: {acknowledge: true}}");
            await _collectionController.CreateAsync("foo", "bar", mappings);

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