// GET: Home
        public ActionResult Index()
        {
            SampleBDC sampleBDC = new SampleBDC();
            var       heading   = sampleBDC.GetApplicationHeading();

            ViewBag.Heading = heading;
            return(View());
        }
Example #2
0
        public void GetApplicationHeading_ForEveryCall_ReturnsDummyValue()
        {
            #region Arrange

            SampleBDC sampleBDC = new SampleBDC();

            #endregion Arrange


            #region Act & Assert
            var heading = sampleBDC.GetApplicationHeading();

            Assert.AreEqual(heading, ".NET MVC WebApplication ts");

            #endregion Act & Assert
        }