public void TestAddGraphic()
        {
            var databasePath = MyTestSqliteDatabase.CreateTempPath();

            using (var db = new DatabaseFactory(new MyTestSqliteDatabase(databasePath)))
            {
                Graphic graphic = new Graphic(4, "NVIDIA GEFORCE 980TI");
                db.AddGraphicToDataBase(graphic);
                Assert.That(() => db.AddGraphicToDataBase(graphic), Throws.TypeOf <ProductAlreadyExistsException>());
                int graphicId = db.GetGraphicCardId(graphic);
                Assert.That(graphic.Name, Is.EqualTo(db.GetGraphicCard(graphicId).Name));
            }
        }