public void BuilderRepositoryRepositoryTest()
        {
            BuilderRepository repository = new BuilderRepository();
            Builder expectedBuilder = new Builder { name = "BuildersomeBuilder" };

            repository.Add(expectedBuilder);

            Builder realBuilder = repository.GetAll().Last();

            Assert.AreEqual(expectedBuilder.name, realBuilder.name);

            repository.Delete(realBuilder);

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

            Assert.AreNotEqual(expectedBuilder.name, realBuilder.name);
        }
        public void BuilderRepositoryRepositoryTest()
        {
            BuilderRepository repository = new BuilderRepository();
            Builder expectedBuilder = new Builder(repository.GetAll().Count()+1, "BuildersomeBuilder");

            repository.Add(expectedBuilder);

            Builder realBuilder = repository.GetItem(expectedBuilder.id);

            Assert.AreEqual(expectedBuilder, realBuilder);

            repository.Delete(expectedBuilder);

            realBuilder = repository.GetItem(expectedBuilder.id);

            Assert.AreEqual(null, realBuilder);
        }
 partial void UpdateBuilder(Builder instance);
 partial void DeleteBuilder(Builder instance);
 partial void InsertBuilder(Builder instance);