public async void Can_Import_Config() { var model = Scaffold.ReadFromJsonFile <ImportExportModel>(@"Config.json"); bool import = await _importExportService.Import(model); Assert.True(import); }
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); }