// GET: Stock/Delete/5
        public ActionResult Delete(Guid id)
        {
            CStock stock = new CStock();

            stock.LoadById(id);
            return(View(stock));
        }
Exemple #2
0
        public void InsertStocksTest()
        {
            CStock stock = new CStock("GOOG");

            stock.Insert();

            CStock newStock = new CStock();

            newStock.LoadById(stock.Id);

            Assert.AreEqual(stock.Ticker, newStock.Ticker);
        }