public void Contact() { TAController controller = new TAController(); ViewResult result = controller.Contact("") as ViewResult; Assert.IsNotNull(result); Assert.IsNotNull(result.Model); }
public void Index_NotLoggedIn() { TAController controller = new TAController(); // Act RedirectToRouteResult result = controller.Index() as RedirectToRouteResult; // Assert Assert.IsNotNull(result); }
private async void StockQuery(StockProfile aStock, Boolean Editable = false, Boolean Save = false) { QueryController nController = new QueryController(); bool nResult = await nController.QueryStock(aStock); if (!nResult) { return; } StockData nStockData = new StockData(); nStockData.Name = aStock.Name; nStockData.Sym = aStock.Sym; nStockData.Mkt = aStock.Mkt; nStockData.Market = aStock.Market; nResult = nController.QueryStockData(ref nStockData); TAController nTACont = new TAController(nStockData); nTACont.Compute(); aStock.ShortStrength = nTACont.BearStrength; aStock.LongStrength = nTACont.BullStrength; aStock.BullIndicators = nTACont.UptrendDescriptions; aStock.BearIndicators = nTACont.DowntrendDescriptions; if (Editable) { StockProfilingForm nForm = new StockProfilingForm(aStock); nForm.Show(); } if (Save) { WatchlistController.getInstance().Add(aStock); } }