public void ListAllItemsTooHighLimit() { var client = GetMockClient(""); var repo = new ItemRepository(client.Object); //Then, list items var items = repo.ListItems(500); }
public void ListAllItemsSuccessfully() { var content = File.ReadAllText("../../Fixtures/items_list.json"); var client = GetMockClient(content); var repo = new ItemRepository(client.Object); //Then, list items var items = repo.ListItems(200); Assert.IsNotNull(items); Assert.IsTrue(items.Any()); }
public void ListAllItemsNegativeParams() { var client = GetMockClient(""); var repo = new ItemRepository(client.Object); //Then, list items var items = repo.ListItems(-10,-10); }
public void ListAllItemsTooHighLimit() { var repo = new ItemRepository(); //Then, list items var items = repo.ListItems(500); }
public void ListAllItemsSuccessfully() { var repo = new ItemRepository(); //Then, list items var items = repo.ListItems(200); Assert.IsNotNull(items); Assert.IsTrue(items.Any()); }
public void ListAllItemsNegativeParams() { var repo = new ItemRepository(); //Then, list items var items = repo.ListItems(-10,-10); }