コード例 #1
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            var model = new BlogHomePage
            {
                Comments = new List <Comment>
                {
                    new Comment
                    {
                        Id          = 1,
                        Description = "Bad Post"
                    }
                }
            };

            return(View(model));
        }
コード例 #2
0
 public void Initialized()
 {
     this.driver = BrowserHost.Instance.Application.Browser;
     this.home   = new BlogHomePage(this.driver);
     home.NavigateTo();
 }