public GroupAddMemberServiceTests()
        {
            _mockGroupAddMemberRepository = GroupAddMemberRepositoryMocks.GetGroupAddMemberRepository();
            _mockGroupAddMemberCommand    = GroupAddMemberCommandMocks.GetGroupAddMemberCommand();

            _groupAddMemberService = new GroupAddMemberService(_mockGroupAddMemberRepository.Object, _mockGroupAddMemberCommand.Object);
        }
Пример #2
0
        public GroupInviteController(IGroupInviteService inviteService, IGroupAddMemberService addMemberService)
        {
            if (inviteService is null)
            {
                throw new ArgumentNullException(nameof(inviteService));
            }

            if (addMemberService is null)
            {
                throw new ArgumentNullException(nameof(addMemberService));
            }

            _inviteService    = inviteService;
            _addMemberService = addMemberService;
        }