public void IndexReturnsEmptyViewName()
        {
            using (var controller = new AccountController(null, null))
            {
                var result = controller.Index() as ViewResult;

                Assert.AreEqual(string.Empty, result.ViewName);
            }
        }
        public void IndexReturnsTitleInTheModel()
        {
            using (var controller = new AccountController(null, null))
            {
                var result = controller.Index() as ViewResult;

                var model = result.ViewData.Model as TenantMasterPageViewData;
                Assert.AreEqual("My Account", model.Title);
            }
        }
        public void IndexReturnsTheTenantInTheModel()
        {
            using (var controller = new AccountController(null, null))
            {
                Tenant tenant = new Tenant();
                controller.Tenant = tenant;

                var result = controller.Index() as ViewResult;

                var model = result.ViewData.Model as TenantPageViewData<Tenant>;
                Assert.AreSame(tenant, model.ContentModel);
            }
        }