public void NemLetezoAuto()
        {
            var sut  = new AdatEleres();
            var auto = sut.GetAuto(-1);

            Assert.IsNull(auto);
        }
        public void AutoTorles()
        {
            var sut  = new AdatEleres();
            var auto = sut.GetAuto(1);

            sut.DeleteAuto(auto);

            string sor = File.ReadLines("autok.txt").First();

            Assert.IsTrue(sor.StartsWith("2;"));
            Init();
        }
        public void EgyAutoLekerdezes()
        {
            //arrange
            var sut = new AdatEleres();

            //act
            var auto = sut.GetAuto(2);

            //assert
            Assert.AreEqual(2, auto.Id);
            Assert.AreEqual(6500, auto.KmOraAllas);
        }
        public void AutoModositas2()
        {
            var sut = new AdatEleres();

            var auto = sut.GetAuto(2);

            auto.Rendszam = "KING01";

            sut.UpdateAuto(auto);
            string sor = File.ReadLines("autok.txt").ToList()[1];

            Assert.AreEqual("2;KING01;3;No2Alvaz;No2Motor;20180901;1;6500;1", sor);
            Init();
        }