public void IdLenghtIsNegativeNumber()
        {
            long id       = -1;
            var  database = new ExtendedDatabasee();

            Assert.Throws <ArgumentOutOfRangeException>(() => database.FindById(id));
        }
        public void ThereIsNoUserByTheGivenId()
        {
            var array = new Person[1]
            {
                new Person(1, "Ivan1")
            };

            var database = new ExtendedDatabasee(array);
            var randomId = 200000;

            Assert.Throws <InvalidOperationException>(() => database.FindById(randomId));
        }
        public void ValidOperationForFindingById()
        {
            var array = new Person[1]
            {
                new Person(1, "Ivan1")
            };

            var database = new ExtendedDatabasee(array);
            var ivansId  = 1;

            var foundPerson = database.FindById(ivansId);

            Assert.AreEqual(foundPerson, array[0]);
        }