public async Task AddUserToGroupWithoutValidation_AfterAdded_Success()
        {
            GroupUserService groupUserService = new GroupUserService(
                IBaseDAOMock <GroupUserEntity> .Create().Add_Success().Object,
                IBaseDAOMock <RoleEntity> .Create().Object,
                IBaseDAOMock <AppUserEntity> .Create().Object,
                IBaseDAOMock <GroupEntity> .Create().Object,
                IGroupUserStoreMock.Create().Object,
                IAddGroupUserFilterMock.Create().BeforeAdd_Success().AfterAdded_Success().Object,
                IValidatorMock <AddExistingUserRequest> .Create().Object,
                NullLogger <GroupUserService> .Instance);

            Result <GroupUserEntity> result = await groupUserService.AddUserToGroupWithoutValidation("user_id", "group_id", "role_id");

            result.Success.Should().BeTrue();
        }
        public async Task AddUserToGroupWithoutValidation_AfterAdded_Failure()
        {
            GroupUserService groupUserService = new GroupUserService(
                IBaseDAOMock <GroupUserEntity> .Create().Add_Success().Object,
                IBaseDAOMock <RoleEntity> .Create().Object,
                IBaseDAOMock <AppUserEntity> .Create().Object,
                IBaseDAOMock <GroupEntity> .Create().Object,
                IGroupUserStoreMock.Create().Object,
                IAddGroupUserFilterMock.Create().BeforeAdd_Success().AfterAdded_Failure().Object,
                IValidatorMock <AddExistingUserRequest> .Create().Object,
                NullLogger <GroupUserService> .Instance);

            Result <GroupUserEntity> result = await groupUserService.AddUserToGroupWithoutValidation("user_id", "group_id", "role_id");

            result.Success.Should().BeFalse();
            result.ResultMessages.Should().Contain(x => x.Code == TesttConstants.RESULT_ERROR_CODE);
        }