コード例 #1
0
        public async Task Can_Get_Available_DataProcessors()
        {
            //Arrange
            const int organizationId = TestEnvironment.DefaultOrganizationId;
            var       orgPrefix      = A <string>();
            var       orgName        = $"{orgPrefix}_{A<int>()}";
            var       organization   = await OrganizationHelper.CreateOrganizationAsync(organizationId, orgName, "87654321", OrganizationTypeKeys.Virksomhed, AccessModifier.Public);

            var registration = await DataProcessingRegistrationHelper.CreateAsync(organizationId, A <string>());

            //Act
            var processors = await DataProcessingRegistrationHelper.GetAvailableDataProcessors(registration.Id, orgPrefix);

            //Assert
            Assert.Contains(processors, x => x.Id == organization.Id);
        }