public GroupAddMemberServiceTests() { _mockGroupAddMemberRepository = GroupAddMemberRepositoryMocks.GetGroupAddMemberRepository(); _mockGroupAddMemberCommand = GroupAddMemberCommandMocks.GetGroupAddMemberCommand(); _groupAddMemberService = new GroupAddMemberService(_mockGroupAddMemberRepository.Object, _mockGroupAddMemberCommand.Object); }
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; }