public void ExportTest()
        {
            _annotationUsersRepositoryMock.Setup(a => a.FindCollection(It.IsAny <Expression <Func <DbAnnotationItemAccessibleUsers, bool> > >()))
            .Returns <Expression <Func <DbAnnotationItemAccessibleUsers, bool> > >(expr =>
            {
                return(conversationStore.Where(expr.Compile()));
            });

            var importExportService = new ArchiveUserDataIntegrationService(
                _annotationItemIntegrationServiceMock.Object,
                _usersRepositoryMock.Object,
                _annotationUsersRepositoryMock.Object,
                _annotationGroupsRepositoryMock.Object,
                _annotationItemRepositoryMock.Object,
                _usersVocabularyRepositoryMock.Object,
                _configurationProviderMock.Object,
                _vocabularyServiceMock.Object,
                _userFilesServiceMock.Object);

            User user = new User();

            var data = importExportService.ExportData(user);

            Assert.IsFalse(string.IsNullOrEmpty(data));
        }
        public void ImportTest()
        {
            var importExportService = new ArchiveUserDataIntegrationService(
                _annotationItemIntegrationServiceMock.Object,
                _usersRepositoryMock.Object,
                _annotationUsersRepositoryMock.Object,
                _annotationGroupsRepositoryMock.Object,
                _annotationItemRepositoryMock.Object,
                _usersVocabularyRepositoryMock.Object,
                _configurationProviderMock.Object,
                _vocabularyServiceMock.Object,
                _userFilesServiceMock.Object);

            User user = new User();

            var data = importExportService.ExportData(user);

            importExportService.ImportData(user, data);

            Assert.IsFalse(string.IsNullOrEmpty(data));
        }