//5 types of enterprise creation -
        //private assets, investment, bank credit, private assets+investment, private assets+bank credit
        public void CreateEnterpriseWithPrivateAssets(decimal personal, MySqlConnection connection)
        {
            Balance = personal;
            Asset a = new Asset(1, personal, DateTime.Now, Id);

            AssetDAO.InsertAssets(connection, new List <Asset> {
                a
            });
        }
        public void RecieveInvestment(Company investor, MySqlConnection connection)
        {
            Balance += investor.Investment;
            Asset a = new Asset(1, investor.Investment, DateTime.Now, Id);

            AssetDAO.InsertAssets(connection, new List <Asset> {
                a
            });
        }
        public void RecieveCredit(Company bank, MySqlConnection connection)
        {
            Balance += bank.Investment;
            Asset a = new Asset(1, bank.Investment, DateTime.Now, Id);

            AssetDAO.InsertAssets(connection, new List <Asset> {
                a
            });
        }
    void AssetTest(MySqlConnection connection)
    {
        List <Asset> assets = new List <Asset>();

        assets.Add(new Asset(2, 5, new DateTime(2014, 09, 25), 1));

        AssetDAO.InsertAssets(connection, assets);

        List <Asset> assets2 = AssetDAO.GetAssets(connection);

        assets2[1].Value = 888;

        AssetDAO.UpdateAssets(connection, assets2);

        assets2 = AssetDAO.GetAssets(connection);

        AssetDAO.DeleteAssets(connection, assets);

        assets2 = AssetDAO.GetAssets(connection);
    }