예제 #1
0
        public IActionResult Index()
        {
            var model = new Greeting2();

            model.FirstName = "Dylan";
            model.LastName  = "Zocchi";
            return(View(model));
        }
예제 #2
0
파일: fakes.cs 프로젝트: mpreeves/snippets
    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!");
    }