anchor.diff:          actual |> hasErrorCode "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) = 
  -//        client.AddIndex(newIndex indexName).Result |> isSuccessful
  -//        let actual = client.GetIndexStatus(indexName).Result
  -//        actual |> isSuccessful
  -//        Assert.Equal<IndexState>(IndexState.Offline, actual.Data.Status)
  -//        client.DeleteIndex(indexName).Result |> isSuccessful
  -//    
  -//    [<Example("put-indices-id-status-1", "")>]
  -//    member __.``Set status of an index 'online'`` (client : FlexClient, indexName : string, handler : LoggingHandler) = 
  -//        client.AddIndex(newIndex indexName).Result |> isSuccessful
  -//        client.BringIndexOnline(indexName).Result |> isSuccessful
  -//        let actual = client.GetIndexStatus(indexName).Result
  -//        Assert.Equal<IndexState>(IndexState.Online, actual.Data.Status)
  -//        client.DeleteIndex(indexName).Result |> isSuccessful
  -//    
  -//    [<Example("put-indices-id-status-1", "")>]
  -//    member __.``Set status of an index 'offline'`` (client : FlexClient, indexName : string, handler : LoggingHandler) = 
  -//        client.AddIndex(new Index(IndexName = indexName, Online = true)).Result |> isSuccessful
  -//        let actual = client.GetIndexStatus(indexName).Result
  -//        Assert.Equal<IndexState>(IndexState.Online, actual.Data.Status)
  -//        client.SetIndexOffline(indexName).Result |> isSuccessful
  -//        let actual = client.GetIndexStatus(indexName).Result
  -//        Assert.Equal<IndexState>(IndexState.Offline, actual.Data.Status)
  -//        client.DeleteIndex(indexName).Result |> isSuccessful
  -//    
  -//    [<Example("get-indices-id-exists-1", "")>]
  -//    member __.``Check if a given index exists`` (client : FlexClient, indexName : Guid, handler : LoggingHandler) = 
  -//        let actual = client.IndexExists("country").Result
  -//        actual |> isSuccessful
  -//        Assert.Equal<bool>(true, actual.Data.Exists)
  -//    
  -//    [<Example("get-indices-1", "")>]
  -//    member __.``Get all indices`` (client : FlexClient, handler : LoggingHandler) = 
  -//        let actual = client.GetAllIndex().Result
  -//        // Should have at least country index
  -//        Assert.True(actual.Data.Count >= 1)+type ``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, index : Index.Dto, handler : LoggingHandler) = 
  +        index.Online <- false
  +        client.AddIndex(index).Result |> isCreated
  +        let actual = client.GetIndexStatus(index.IndexName).Result
  +        actual |> isSuccessful
  +        (actual |> data).Status =? IndexState.Offline
  +        client.DeleteIndex(index.IndexName).Result |> isSuccessful
  +    
  +    [<Example("put-indices-id-status-1", "")>]
  +    member __.``Set status of an index 'online'`` (client : FlexClient, index : Index.Dto, handler : LoggingHandler) = 
  +        index.Online <- false
  +        client.AddIndex(index).Result |> isCreated
  +        client.BringIndexOnline(index.IndexName).Result |> isSuccessful
  +        let actual = client.GetIndexStatus(index.IndexName).Result
  +        (actual |> data).Status =? IndexState.Online
  +        client.DeleteIndex(index.IndexName).Result |> isSuccessful
  +    
  +    [<Example("put-indices-id-status-1", "")>]
  +    member __.``Set status of an index 'offline'`` (client : FlexClient, index : Index.Dto, handler : LoggingHandler) = 
  +        client.AddIndex(index).Result |> isCreated
  +        let actual = client.GetIndexStatus(index.IndexName).Result
  +        actual |> isSuccessful
  +        (actual |> data).Status =? IndexState.Online
  +        client.SetIndexOffline(index.IndexName).Result |> isSuccessful
  +        let actual = client.GetIndexStatus(index.IndexName).Result
  +        (actual |> data).Status =? IndexState.Offline
  +        client.DeleteIndex(index.IndexName).Result |> isSuccessful
  +    
  +    [<Example("get-indices-id-exists-1", "")>]
  +    member __.``Check if a given index exists`` (client : FlexClient, indexName : Guid, handler : LoggingHandler) = 
  +        let actual = client.IndexExists("contact").Result
  +        actual |> isSuccessful
  +        (actual |> data).Exists =? true
  +    
  +    [<Example("get-indices-1", "")>]
  +    member __.``Get all indices`` (client : FlexClient, handler : LoggingHandler) = 
  +        let actual = client.GetAllIndex().Result
  +        // Should have at least contact index
  +        (actual |> data).Count() >=? 1
positive.code: type ``Get Index Tests``() = 
      [<Example("get-indices-id-1", "")>]
      member __.``Getting an index detail by name`` (client : FlexClient, handler : LoggingHandler) = 
          client.AddIndex(mockIndexSettings()).Result |> isCreated
          let actual = client.GetIndex("contact").Result
          actual |> isSuccessful
          (actual |> data).IndexName =? "contact"
  
negative.code:     let addField (index : Index.Dto) (fieldName : string) =
          index.Fields <- index.Fields |> Array.append [|new Field.Dto(fieldName)|]
      
  
      // ----------------------------------------------------------------------------
      // Test assertions for FlexClient based tests
  