Exemplo n.º 1
0
        public static bool CanBlockUser(
            IBlockedUserService blockedUserService,
            User actionUser,
            User otherUser)
        {
            // Validate
            blockedUserService.Should().NotBeNull();
            actionUser.Should().NotBeNull();
            otherUser.Should().NotBeNull();

            // Return whether or not the action user is part of the contact pair
            return(!blockedUserService.AreUsersBlocked(actionUser, otherUser));
        }