public void IdentityPermissions_CanNotViewModule()
        {
            identityPermissions = new IdentityPermissions(true, null, agencyModulePermissions);
            Assert.IsNotNull(identityPermissions);
            var canAccessModule = identityPermissions.CanViewModule(ModuleType.Arrest);

            Assert.IsFalse(canAccessModule);
        }
        public void IdentityPermissions_CanViewModule()
        {
            agencyModulePermissions = new Dictionary <Guid, Dictionary <ModuleType, IModulePermissions> >();
            Mock <IModulePermissions> modulePermission = new Mock <IModulePermissions>();

            modulePermission.SetupGet(a => a.CanView).Returns(true);

            var modulePermissions = new Dictionary <ModuleType, IModulePermissions>();

            modulePermissions.Add(ModuleType.Arrest, modulePermission.Object);
            agencyModulePermissions.Add(new Guid(DeveloperIdentity.DeveloperIdentityId), modulePermissions);

            identityPermissions = new IdentityPermissions(true, null, agencyModulePermissions);
            Assert.IsNotNull(identityPermissions);
            var canAccessModule = identityPermissions.CanViewModule(ModuleType.Arrest);

            Assert.IsTrue(canAccessModule);
        }