コード例 #1
0
        public void Import_Organizations_With_The_Same_Organization_Twice()
        {
            OrganizationCreator.ImportTemplateWithTwinOrganizations();
            AssertThat.IsTrue(OrganizationCreator.IsOrganizationFileImportedWithDuplicates, "At least one of the 2 duplicate organizations should have been imported but neither did.");

            OrganizationsPage.FindOrganization()
            .WithOrganizationName(OrganizationCreator.FirstOrganization.OrganizationName)
            .Find();
            AssertThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, 1,
                                $"There should be only one organziation with name '{OrganizationCreator.FirstOrganization.OrganizationName}' being displayed. It seems that the second twin organization was imported successfully");
        }