// NOTE: This method was created to make sure to create a different instance of contract resolver as by default // MvcJsonOptions uses a static shared instance of resolver which when changed causes other tests to fail. private MvcNewtonsoftJsonOptions CreateDefaultMvcJsonOptions() { var options = new MvcNewtonsoftJsonOptions(); options.SerializerSettings.ContractResolver = JsonSerializerSettingsProvider.CreateContractResolver(); return(options); }