using System.Threading.Tasks;
using DalSoft.RestClient;
using Newtonsoft.Json.Serialization;
public async static Task Main()
var client = new RestClient("https://jsonplaceholder.typicode.com", new Config()
.SetJsonSerializerSettings(new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }));
.Resource("users/1").Get()
.Verify(userIsBret => userIsBret.username == "Bret")
.Verify(httpResponseMessageIsOk => httpResponseMessageIsOk.HttpResponseMessage.StatusCode == HttpStatusCode.OK);