BetterMembership.IntegrationTests.ProfileProvider.DeleteProfilesTests.GivenConfirmedUsersWhenDeleteProfilesThenProfilesDeletedSuccessfully C# (CSharp) Method

GivenConfirmedUsersWhenDeleteProfilesThenProfilesDeletedSuccessfully() private method

private GivenConfirmedUsersWhenDeleteProfilesThenProfilesDeletedSuccessfully ( string providerName, string membershipProviderName ) : void
providerName string
membershipProviderName string
return void
        public void GivenConfirmedUsersWhenDeleteProfilesThenProfilesDeletedSuccessfully(
            string providerName, string membershipProviderName)
        {
            // arrange
            var testClass = this.WithProvider(providerName);
            var memProvider = this.WithMembershipProvider(membershipProviderName);
            const int PageSize = 10;
            const int PageIndex = 0;
            string prefix1;
            const int UserGroupCount = PageSize;
            int totalRecords;
            var users = memProvider.WithConfirmedUsers(UserGroupCount, out prefix1).Value;
            var profiles = testClass.GetAllProfiles(
                ProfileAuthenticationOption.All, PageIndex, PageSize, out totalRecords);

            // act
            testClass.DeleteProfiles(profiles);

            // assert
            var checkProfiles = testClass.GetAllProfiles(
                ProfileAuthenticationOption.All, PageIndex, PageSize, out totalRecords);
            Assert.That(checkProfiles, Is.Not.Null);
            Assert.That(checkProfiles.Count, Is.EqualTo(0));
            Assert.That(totalRecords, Is.EqualTo(0));

            var checkUsers = memProvider.GetAllUsers(0, 10, out totalRecords);
            Assert.That(checkUsers, Is.Not.Null);
            Assert.That(checkUsers.Count, Is.EqualTo(0));
            Assert.That(totalRecords, Is.EqualTo(0));
        }
    }