public void BindableSelection_NoUserServiceInDependencyResolver_ThrowsNullReferenceException()
        {
            mockContainerProvider = new Mock <IContainerProvider>();
            DependencyResolver.SetResolver(mockContainerProvider.Object);

            var attribute = new BindableAttribute("Role1");

            attribute.IsBindable();
        }
        public void BindableSelection_IsBindableWithEmptyRole_Validates()
        {
            var attribute = new BindableAttribute(new string[] {});

            Assert.IsTrue(attribute.IsBindable());
        }
        public void BindableSelection_IsBindableWithRoleUserHas_Validates()
        {
            var attribute = new BindableAttribute("Role1");

            Assert.IsTrue(attribute.IsBindable());
        }
        public void BindableSelection_IsNotBindableWithRoleUserDoesNotHave_Fails()
        {
            var attribute = new BindableAttribute("RoleUserDoesNotHave");

            Assert.IsFalse(attribute.IsBindable());
        }