Ejemplo n.º 1
0
        public void OptOutDuringMapping()
        {
            var obj = new SimpleOptOutClass
            {
                Id = 1,
                Name = "ABC",
                Description = "efghijklmnop",
                IgnoreThisAsWell = "qrstuvwxyz"
            };

            var result = this._client.MapFromAttributes<SimpleOptOutClass>();
            var call = result.ConnectionStatus.Request;

            this.JsonEquals(call, MethodInfo.GetCurrentMethod());
        }
Ejemplo n.º 2
0
        public void OptOutDuringIndexing()
        {
            var obj = new SimpleOptOutClass
            {
                Id               = 1,
                Name             = "ABC",
                Description      = "efghijklmnop",
                IgnoreThisAsWell = "qrstuvwxyz"
            };

            var result = this._client.Index(obj);
            var call   = result.ConnectionStatus.Request;

            this.JsonEquals(call, MethodInfo.GetCurrentMethod());
        }