public void AddsEntityTo_database_ReturnsGeneratedPrimaryKey()
        {
            var animalRepository = Container.Resolve<IRepository<Animal>>();

            var a1 = new Animal { Name = "Foo" };
            Guid id = animalRepository.Insert(a1);

            Assert.AreNotEqual(Guid.Empty, id);
            Assert.AreEqual(a1.Id, id);
        }
        public void GuidKey_UsingEntity()
        {
            var animalRepository = Container.Resolve<IRepository<Animal>>();

            DateTime start = DateTime.Now;
            for (int i = 0; i < Count; i++)
            {
                Animal a2 = new Animal { Name = "Name" + i };
                animalRepository.Insert(a2);
            }

            double total = DateTime.Now.Subtract(start).TotalMilliseconds;
            Console.WriteLine("Total Time:" + total);
            Console.WriteLine("Average Time:" + total / Count);
        }