Exemplo n.º 1
0
        public void InfrastructureController_AddMultipleDifferentInformationMessages()
        {
            var userService = new Mock <IUserService>();
            var adwService  = new Mock <IAdwService>();

            var controller = new TestPagedGridController(userService.Object, adwService.Object);

            var result = controller.AddMultipleDifferentInformationMessages() as ViewResult;

            Assert.IsNotNull(result);
            Assert.IsTrue(((IEnumerable <string>)result.Model).Count() == 2);
            Assert.IsTrue(((IEnumerable <string>)result.Model).Contains(TestPagedGridController.InformationMessage));
            Assert.IsTrue(((IEnumerable <string>)result.Model).Contains(TestPagedGridController.InformationMessage.Reverse().ToString()));
        }