public void Should_Throw_On_InValid_GetItemFilter() { var netoStore = GetStoreManager(); var filter = new GetContentFilter(); Assert.Throws <NetoRequestException>(() => netoStore.Content.GetContent(filter)); }
public void Should_Get_Single_Content_From_ID(string id) { var netoStore = GetStoreManager(); var filter = new GetContentFilter(id); Content[] result = netoStore.Content.GetContent(filter); Assert.IsNotNull(result); Assert.AreEqual(1, result.Length); }
static void GetContent(StoreManager neto) { var filter = new GetContentFilter(new string[] { "105", "129", "128" }); Content[] result = neto.Content.GetContent(filter); foreach (Content i in result) { Console.WriteLine($"{i.ContentID} - {i.ContentName}"); } }
public void Should_Get_N_Limit_Content(int limit) { var netoStore = GetStoreManager(); var filter = new GetContentFilter(); filter.DateUpdatedFrom = DateTime.Now.Add(-TimeSpan.FromDays(100)); filter.Limit = limit; Content[] result = netoStore.Content.GetContent(filter); Assert.IsNotNull(result); Assert.AreEqual(limit, result.Length); }