public async Task Find_By_Id_Mongo_Test()
        {
            // Arrange
            LetPortal.Identity.Stores.RoleStore roleStore = _context.GetRoleStore();

            // Act
            LetPortal.Identity.Entities.Role result = await roleStore.FindByIdAsync("5c06a15e4cc9a850bca44488", new System.Threading.CancellationToken());

            roleStore.Dispose();
            // Assert
            Assert.NotNull(result);
        }
        public async Task Find_By_Name_Mongo_Test()
        {
            // Arrange
            LetPortal.Identity.Stores.RoleStore roleStore = _context.GetRoleStore();

            // Act
            LetPortal.Identity.Entities.Role result = await roleStore.FindByNameAsync("SUPERADMIN", new System.Threading.CancellationToken());

            roleStore.Dispose();

            // Assert
            Assert.NotNull(result);
        }
        public async Task Get_By_Name_Mongo_Test()
        {
            // Arrange
            DatabaseOptions databaseOptions = _context.MongoDatabaseOptions;
            IOptionsMonitor <DatabaseOptions> databaseOptionsMock = Mock.Of <IOptionsMonitor <DatabaseOptions> >(_ => _.CurrentValue == databaseOptions);
            RoleMongoRepository roleRepository = new RoleMongoRepository(new MongoConnection(databaseOptionsMock.CurrentValue));

            // Act
            LetPortal.Identity.Entities.Role result = await roleRepository.GetByNameAsync("SuperAdmin");

            roleRepository.Dispose();
            // Assert
            Assert.NotNull(result);
        }
        public async Task Delete_Role_Mongo_Test()
        {
            // Arrange
            LetPortal.Identity.Stores.RoleStore roleStore = _context.GetRoleStore();
            LetPortal.Identity.Entities.Role    role      = _context.GenerateRole();
            // Act
            await roleStore.CreateAsync(role, new System.Threading.CancellationToken());

            await roleStore.DeleteAsync(role, new System.Threading.CancellationToken());

            roleStore.Dispose();
            // Assert
            Assert.True(true);
        }