public IEncoder GetEncoder()
        {
            var jsonWriter = new CamelCaseJsonWriter(new DataWriterSettings(DefaultEncoderDecoderConfiguration.CombinedResolverStrategy()
                , new TeamCityDateFilter()), new[] { "application/.*json", "text/.*json" });

            var writers = new List<IDataWriter> { jsonWriter };
            var dataWriterProvider = new RegExBasedDataWriterProvider(new List<IDataWriter> { jsonWriter });
            return new DefaultEncoder(dataWriterProvider);
        }
        public IEncoder GetEncoder()
        {
            var jsonWriter =
                new CamelCaseJsonWriter(new DataWriterSettings(DefaultEncoderDecoderConfiguration.CombinedResolverStrategy()
                                                               , new TeamCityDateFilter()), "application/.*json", "text/.*json");

            var writers = new List <IDataWriter> {
                jsonWriter
            };
            var dataWriterProvider = new RegExBasedDataWriterProvider(new List <IDataWriter> {
                jsonWriter
            });

            return(new DefaultEncoder(dataWriterProvider));
        }