public void Can_Edit_Submitted()
        {
            var service = new SessionService(null);
            var user = new User { Id = 1, IsAdministrator = true };
            var session = new Session { Id = 1 };
            var permissions = service.GetPermissionModel(session, user);

            Assert.AreEqual(permissions.CanEdit, true);
        }
        public void Can_Edit_AdminRejected()
        {
            var service = new SessionService(null);
            var user = new User { Id = 1, IsDeleted = false, IsAdministrator = true };
            var session = new Session { Id = 1, UserSubmittedAt = DateTime.Now, AdminSubmittedAt = DateTime.Now, IsAccepted = false, RejectionReason = "I want" };
            var permissions = service.GetPermissionModel(session, user);

            Assert.AreEqual(permissions.CanEdit, true);
        }