public void ThereIsNoFoundUserInTheDatabase()
        {
            var array = new Person[1]
            {
                new Person(1, "Ivan1"),
            };
            var database = new ExtendedDatabasee(array);

            Assert.Throws <InvalidOperationException>(() => database.FindByUsername("Iva46346n2"));
        }
        public void ValidOperationForFindingPeople()
        {
            var array = new Person[1]
            {
                new Person(1, "Ivan1")
            };
            var database = new ExtendedDatabasee(array);

            Assert.AreEqual(database.FindByUsername("Ivan1"), array[0]);
        }
        public void ThereIsNoValidUsernameBecauseOfEmptySpace()
        {
            var array = new Person[1]
            {
                new Person(1, "Ivan1"),
            };
            var database = new ExtendedDatabasee(array);

            Assert.Throws <ArgumentNullException>(() => database.FindByUsername(null));
        }