Ejemplo n.º 1
0
        public void When_updating_community_provider_without_community_organization_to_with_community_organization_should_update_tuples()
        {
            Builder
            .AddCommunityOrganization(900)
            .AddCommunityProvider(9001)
            .Execute();

            EducationOrganizationHelper.ShouldContainTuples(Connection, (900, 900), (9001, 9001));

            Builder
            .UpdateCommunityProvider(9001, 900)
            .Execute();

            EducationOrganizationHelper.ShouldContainTuples(Connection, (900, 900), (9001, 9001), (900, 9001));
        }
Ejemplo n.º 2
0
        public void When_inserting_and_deleting_community_provider_with_community_organization_should_update_tuples()
        {
            Builder
            .AddCommunityOrganization(900)
            .AddCommunityProvider(9001, 900)
            .Execute();

            EducationOrganizationHelper.ShouldContainTuples(Connection, (900, 900), (9001, 9001), (900, 9001));

            Builder
            .DeleteEducationOrganization(9001)
            .Execute();

            EducationOrganizationHelper.ShouldContainTuples(Connection, (900, 900));
            EducationOrganizationHelper.ShouldNotContainTuples(Connection, (9001, 9001), (900, 9001));
        }