public void Add()
        {
            var repo = new InMemoryItemRepo();

            repo.Add(_item1);
            Assert.AreEqual(1, repo.GetAll().Count());
            Assert.AreSame(_item1, repo.GetAll().First());
        }
        public void AddRange()
        {
            var repo = new InMemoryItemRepo();

            repo.AddRange(new List <Item> {
                _item1, _item2, _item3
            });

            Assert.AreEqual(3, repo.GetAll().Count());
            Assert.AreSame(_item1, repo.GetAll().ToList()[0]);
            Assert.AreSame(_item2, repo.GetAll().ToList()[1]);
            Assert.AreSame(_item3, repo.GetAll().ToList()[2]);
        }
        public void AddRange_EmptyList()
        {
            var repo = new InMemoryItemRepo();

            repo.AddRange(new List <Item>());

            Assert.AreEqual(0, repo.GetAll().Count());
        }
        public void GetAllTest_Repo_Is_Empty()
        {
            var repo = new InMemoryItemRepo();

            Assert.AreEqual(0, repo.GetAll().Count());
        }