public void AgentRepositoryTest()
        {
            AgentRepository repository = new AgentRepository();
            Agent expectedAgent = new Agent(repository.GetAll().Count() + 1, "agensomeagent");

            repository.Add(expectedAgent);

            Agent realAgent = repository.GetItem(expectedAgent.id);

            Assert.AreEqual(expectedAgent, realAgent);

            repository.Delete(expectedAgent);

            realAgent = repository.GetItem(expectedAgent.id);

            Assert.AreEqual(null, realAgent);
        }
        public void AgentRepositoryTest()
        {
            AgentRepository repository = new AgentRepository();
            Agent expectedAgent = new Agent
            {
                name = "agensomeagent"
            };

            repository.Add(expectedAgent);

            Agent realAgent = repository.GetAll().Last();

            Assert.AreEqual(expectedAgent.name, realAgent.name);

            repository.Delete(realAgent);

            realAgent = repository.GetAll().Last();

            Assert.AreNotEqual(expectedAgent.name, realAgent.name);
        }
 partial void UpdateAgent(Agent instance);
 partial void DeleteAgent(Agent instance);
 partial void InsertAgent(Agent instance);