public async Task DeleteMembersFromGroupAsync_GroupWithCurrentIdNotExist_ReturnNotFoundException()
        {
            // Arrange
            var assignScope = new AssignScope
            {
                SelectAll = true,
                Members   = new List <KeyValuePair <int, UserType> > {
                    new KeyValuePair <int, UserType>(1, UserType.User)
                }
            };
            var cxn        = new SqlConnectionWrapperMock();
            var repository = new SqlGroupRepository(cxn.Object);
            var errorId    = (int)SqlErrorCodes.GroupWithCurrentIdNotExist;
            var groupId    = 1;

            cxn.SetupExecuteScalarAsync("DeleteMembersFromGroup", It.IsAny <Dictionary <string, object> >(), 0, new Dictionary <string, object> {
                { "ErrorCode", errorId }
            });

            // Act
            await repository.DeleteMembersFromGroupAsync(groupId, assignScope);

            // Assert
            // Exception
        }
        public async Task DeleteMembersFromGroupAsync_SuccessfulDeletingMembers_ReturnCountDeletedMembers()
        {
            // Arrange
            var assignScope = new AssignScope
            {
                SelectAll = true,
                Members   = new List <KeyValuePair <int, UserType> > {
                    new KeyValuePair <int, UserType>(1, UserType.User)
                }
            };
            var cxn        = new SqlConnectionWrapperMock();
            var repository = new SqlGroupRepository(cxn.Object);
            var errorId    = 0;
            var groupId    = 1;

            cxn.SetupExecuteScalarAsync("DeleteMembersFromGroup", It.IsAny <Dictionary <string, object> >(), 0, new Dictionary <string, object> {
                { "ErrorCode", errorId }
            });

            // Act
            await repository.DeleteMembersFromGroupAsync(groupId, assignScope);

            // Assert
            cxn.Verify();
        }