public void SetUp()
 {
     Mock = new MockRepository();
     ProfileService = Mock.DynamicMock<IProfileService>();
     ProfileController = new ProfileController(ProfileService);
     Profile = new ProfileModelDto { ID = 1, Email = "*****@*****.**", Role = "admin", LoginName = "testuser" };
     ProfileList = new[]
         {
             new ProfileModelDto { ID=1},
             new ProfileModelDto { ID=2}
         };
 }
        public void Redirects_to_lists()
        {
            #region Arrange
            var profileController = new ProfileController(ProfileService);
            #endregion

            #region Act
            var redirect = (RedirectToRouteResult)profileController.Index();

            #endregion

            #region Assert
            redirect.AssertActionRedirect().ToAction("List");
            #endregion
        }