public virtual DetailedResult GetDetailed(DataGetDetailed dataGetDetailed) { var byteArray = PostAsync <DataGetDetailed>(dataGetDetailed, "GetDetailed"); var stringContents = Encoding.UTF8.GetString(byteArray); return(Helper.FromJson <DetailedResult>(stringContents)); }
public void GetDetailed_GivenDataGetDetailedUniqueIdReturnsResultWithSameId() { var config = Global.GetConfig; var api = new AbouRestApi(config); var data = new DataGetDetailed(config) { UniqueId = "190227-BSF_10-GC95" }; DetailedResult detailedResult = api.GetDetailed(data); Assert.Equal(data.UniqueId, detailedResult.Id); }