public IActionResult Index()
        {
            var model = new Greeting2();

            model.FirstName = "Dylan";
            model.LastName  = "Zocchi";
            return(View(model));
        }
Example #2
0
    public void should_send_an_email_message()
    {
        IEmailService es  = Substitute.For <IEmailService>();
        Greeting2     sut = new Greeting2(es);

        sut.SayHello("Joe");

        es.Received().SendEmail("Whatup, Joe!");
    }