public TableContractResolverTests()
        {
            var config = new HttpConfiguration();

            // Formatter initialization happens in the TableControllerConfigAttribute
            TableControllerConfigAttribute tableConfig = new TableControllerConfigAttribute();
            var descriptor = new HttpControllerDescriptor { Configuration = config };
            var settings = new HttpControllerSettings(config);
            tableConfig.Initialize(settings, descriptor);

            this.formatter = settings.Formatters.JsonFormatter;
            this.resolverMock = new Mock<TableContractResolver>(this.formatter) { CallBase = true };
            this.resolver = this.resolverMock.Object;
        }
        public TableContractResolverTests()
        {
            var config = new HttpConfiguration();

            // Formatter initialization happens in the TableControllerConfigAttribute
            TableControllerConfigAttribute tableConfig = new TableControllerConfigAttribute();
            var descriptor = new HttpControllerDescriptor {
                Configuration = config
            };
            var settings = new HttpControllerSettings(config);

            tableConfig.Initialize(settings, descriptor);

            this.formatter    = settings.Formatters.JsonFormatter;
            this.resolverMock = new Mock <TableContractResolver>(this.formatter)
            {
                CallBase = true
            };
            this.resolver = this.resolverMock.Object;
        }