anchor.diff:  //    let withBody (body : string) (result : Example) = { result with Requestbody = Some(body) }
   //
   
  -//
  -//    /// <summary>
  -//    /// Basic index configuration
  -//    /// </summary>
  -//    let mockIndexSettings() = 
  -//        let index = new Index.Dto()
  -//        index.IndexName <- "contact"
  -//        index.Online <- true
  -//        index.IndexConfiguration.DirectoryType <- DirectoryType.Dto.Ram
  -//        index.Fields <- 
  -//         [| new Field.Dto("firstname", FieldType.Dto.Text)
  -//            new Field.Dto("lastname", FieldType.Dto.Text)
  -//            new Field.Dto("email", FieldType.Dto.ExactText)
  -//            new Field.Dto("country", FieldType.Dto.Text)
  -//            new Field.Dto("ipaddress", FieldType.Dto.ExactText)
  -//            new Field.Dto("cvv2", FieldType.Dto.Int)
  -//            new Field.Dto("description", FieldType.Dto.Highlight)
  -//            new Field.Dto("fullname", FieldType.Dto.Text, ScriptName = "fullname") |]
  -//        index.Scripts <- 
  -//            [| new Script.Dto( ScriptName = "fullname", Source = """return fields.firstname + " " + fields.lastname;""", ScriptType = ScriptType.Dto.ComputedField) |]
  -//        let searchProfileQuery = 
  -//            new SearchQuery.Dto(index.IndexName, "firstname = '' AND lastname = '' AND cvv2 = '116' AND country = ''", 
  -//                            QueryName = "test1")
  -//        searchProfileQuery.MissingValueConfiguration.Add("firstname", MissingValueOption.ThrowError)
  -//        searchProfileQuery.MissingValueConfiguration.Add("cvv2", MissingValueOption.Default)
  -//        searchProfileQuery.MissingValueConfiguration.Add("topic", MissingValueOption.Ignore)
  -//        index.SearchProfiles <- [| searchProfileQuery |]
  -//        index
  -//    
  +
  +    /// <summary>
  +    /// Basic index configuration
  +    /// </summary>
  +    let mockIndexSettings() = 
  +        let index = new Index.Dto()
  +        index.IndexName <- "contact"
  +        index.Online <- true
  +        index.IndexConfiguration.DirectoryType <- DirectoryType.Dto.Ram
  +        index.Fields <- 
  +         [| new Field.Dto("firstname", FieldType.Dto.Text)
  +            new Field.Dto("lastname", FieldType.Dto.Text)
  +            new Field.Dto("email", FieldType.Dto.ExactText)
  +            new Field.Dto("country", FieldType.Dto.Text)
  +            new Field.Dto("ipaddress", FieldType.Dto.ExactText)
  +            new Field.Dto("cvv2", FieldType.Dto.Int)
  +            new Field.Dto("description", FieldType.Dto.Highlight)
  +            new Field.Dto("fullname", FieldType.Dto.Text, ScriptName = "fullname") |]
  +        index.Scripts <- 
  +            [| new Script.Dto( ScriptName = "fullname", Source = """return fields.firstname + " " + fields.lastname;""", ScriptType = ScriptType.Dto.ComputedField) |]
  +        let searchProfileQuery = 
  +            new SearchQuery.Dto(index.IndexName, "firstname = '' AND lastname = '' AND cvv2 = '116' AND country = ''", 
  +                            QueryName = "test1")
  +        searchProfileQuery.MissingValueConfiguration.Add("firstname", MissingValueOption.ThrowError)
  +        searchProfileQuery.MissingValueConfiguration.Add("cvv2", MissingValueOption.Default)
  +        searchProfileQuery.MissingValueConfiguration.Add("topic", MissingValueOption.Ignore)
  +        index.SearchProfiles <- [| searchProfileQuery |]
  +        index
  +    
   //    // ----------------------------------------------------------------------------
   //    // Test assertions for Example based tests
   //    // ----------------------------------------------------------------------------
  
positive.code:         actual |> hasErrorCode "INDEX_NOT_FOUND"
          actual |> hasHttpStatusCode HttpStatusCode.BadRequest
  
  //module ``Get Index Tests`` = 
  //    [<Example("get-indices-id-1", "")>]
  //    member __.``Getting an index detail by name`` (client : FlexClient, indexName : string, handler : LoggingHandler) = 
  //        let actual = client.GetIndex("country").Result
  //        actual |> isSuccessful
  //        Assert.Equal<string>("country", actual.Data.IndexName)
  //        actual |> hasHttpStatusCode HttpStatusCode.OK
  //    
  //    [<Example("delete-indices-id-2", "")>]
  //    member __.``Getting an non existing index will return error`` (client : FlexClient, indexName : string, 
  //                                                             handler : LoggingHandler) = 
  //        let actual = client.DeleteIndex(indexName).Result
  //        actual |> VerifyErrorCode Errors.INDEX_NOT_FOUND
  //        actual |> hasHttpStatusCode HttpStatusCode.NotFound
  //
  //module ``Index Other Services Tests`` = 
  //    [<Example("get-indices-id-status-1", "Get status of an index (offine)")>]
  //    member __.``Newly created index is always offline`` (client : FlexClient, indexName : string, handler : LoggingHandler) = 
  
negative.code:         client.DeleteIndex(indexName).Result |> isSuccessful
      
      [<Example("post-indices-id-4", "")>]
      member __.``Create an index with dynamic fields`` (client : FlexClient, handler : LoggingHandler) = 
          // The dynamic field are already constructed in the Index.Dto injected parameter
          // See fullname field
          let index = mockIndexSettings()
          client.AddIndex(index).Result |> isCreated
          client.DeleteIndex(index.IndexName).Result |> isSuccessful
      
  