public void LayoutController_AddGet_ShouldReturnANewLayoutObject()
        {
            var layout = A.Dummy <Layout>();

            A.CallTo(() => _layoutAdminService.GetAddLayoutModel(123)).Returns(layout);
            var actionResult = _layoutController.Add_Get(123);

            actionResult.Model.Should().Be(layout);
        }
Ejemplo n.º 2
0
        public void LayoutController_AddGet_ShouldReturnANewLayoutObject()
        {
            var actionResult = _layoutController.Add_Get(null) as ViewResult;

            actionResult.Model.Should().BeOfType <Layout>();
        }