コード例 #1
0
        public async void Can_Import_Config()
        {
            var  model  = Scaffold.ReadFromJsonFile <ImportExportModel>(@"Config.json");
            bool import = await _importExportService.Import(model);

            Assert.True(import);
        }
コード例 #2
0
        public async void Can_Export_All()
        {
            var  model  = Scaffold.ReadFromJsonFile <ImportExportModel>(@"Config.json");
            bool import = await _importExportService.Import(model);

            Assert.True(import);

            ImportExportModel export = await _importExportService.Export();

            Assert.NotNull(export);
            Assert.NotEmpty(export.User2UserGroup);
            Assert.NotEmpty(export.UserGroupPermissions);
            Assert.NotEmpty(export.UserGroups);
        }