示例#1
0
        public void SecurityPluginRegisterRoutesTest()
        {
            SecurityPlugin  plugin          = new SecurityPlugin();
            RouteCollection routeCollection = new RouteCollection();

            plugin.RegisterRoutes(routeCollection);

            Assert.That(routeCollection.Count == 2);
        }
示例#2
0
        public void SecurityPluginRegisterRoutesTest()
        {
            SecurityPlugin plugin = new SecurityPlugin();
            RouteCollection routeCollection = new RouteCollection();

            plugin.RegisterRoutes(routeCollection);

            Assert.That(routeCollection.Count == 2);
        }
示例#3
0
        public void SecurityPluginBuildActionsTest()
        {
            SecurityPlugin plugin = new SecurityPlugin();
            Role           role   = Role.None;

            IEnumerable <Common.Models.Action> actions = plugin.BuildActions();

            Assert.That(actions.Count() == 0);
        }
示例#4
0
        public void SecurityPluginBuildActionsTest()
        {
            SecurityPlugin plugin = new SecurityPlugin();
            Role role = Role.None;

            IEnumerable<Common.Models.Action> actions = plugin.BuildActions();

            Assert.That(actions.Count() == 0);
        }
示例#5
0
        public void SecurityPluginBuildMenuTest()
        {
            Menu           menu   = new Menu();
            SecurityPlugin plugin = new SecurityPlugin();

            menu.Add(plugin.BuildMenuItems());

            Assert.AreEqual(menu.Items.Count(), 1);
            //Assert.That(menu.Items[0].Text == "Security");
            //Assert.That(menu.Items[0].Controller == "Security");
            //Assert.That(menu.Items[0].Action == "Index");
        }
示例#6
0
        public void SecurityPluginBuildMenuTest()
        {
            Menu menu = new Menu();
            SecurityPlugin plugin = new SecurityPlugin();

            menu.Add(plugin.BuildMenuItems());

            Assert.AreEqual(menu.Items.Count(), 1);
            //Assert.That(menu.Items[0].Text == "Security");
            //Assert.That(menu.Items[0].Controller == "Security");
            //Assert.That(menu.Items[0].Action == "Index");
        }
示例#7
0
 public void SetUp()
 {
     securityPlugin = new SecurityPlugin();
 }
示例#8
0
        public void SecurityPluginGetNameTest()
        {
            SecurityPlugin plugin = new SecurityPlugin();

            Assert.That(plugin.GetName() == "SecurityPlugin");
        }
示例#9
0
 public AuthPlugin(IClientSocket clientSocket) : base(clientSocket)
 {
     _securityPlugin = new SecurityPlugin(clientSocket);
 }
示例#10
0
 public void SetUp()
 {
     securityPlugin = new SecurityPlugin();
 }
示例#11
0
 public void SecurityPluginGetNameTest()
 {
     SecurityPlugin plugin = new SecurityPlugin();
     Assert.That(plugin.GetName() == "SecurityPlugin");
 }