using Valg.EVA.Skanning.Identity;

namespace Valg.EVA.Skanning.UserInterfaceElements.RoleSelector
{
    public class SubAreaRoleViewModel : ISelectedRoleViewModel
    {
        public SubAreaRoleViewModel(Role subAreaRole)
        {
            this.Role = subAreaRole;
        }

        public Role Role { get; private set; }

        public string DisplayText
        {
            get { return this.Role.Area.AreaName; }
        }
    }
}
