public void SecurityPluginRegisterRoutesTest() { SecurityPlugin plugin = new SecurityPlugin(); RouteCollection routeCollection = new RouteCollection(); plugin.RegisterRoutes(routeCollection); Assert.That(routeCollection.Count == 2); }
public void SecurityPluginBuildActionsTest() { SecurityPlugin plugin = new SecurityPlugin(); Role role = Role.None; IEnumerable <Common.Models.Action> actions = plugin.BuildActions(); Assert.That(actions.Count() == 0); }
public void SecurityPluginBuildActionsTest() { SecurityPlugin plugin = new SecurityPlugin(); Role role = Role.None; IEnumerable<Common.Models.Action> actions = plugin.BuildActions(); Assert.That(actions.Count() == 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"); }
public void SetUp() { securityPlugin = new SecurityPlugin(); }
public void SecurityPluginGetNameTest() { SecurityPlugin plugin = new SecurityPlugin(); Assert.That(plugin.GetName() == "SecurityPlugin"); }
public AuthPlugin(IClientSocket clientSocket) : base(clientSocket) { _securityPlugin = new SecurityPlugin(clientSocket); }