BetterMembership.Web.BetterProfileProvider.GetAllInactiveProfiles C# (CSharp) Метод

GetAllInactiveProfiles() публичный Метод

public GetAllInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection
authenticationOption ProfileAuthenticationOption
userInactiveSinceDate System.DateTime
pageIndex int
pageSize int
totalRecords int
Результат System.Web.Profile.ProfileInfoCollection
        public override ProfileInfoCollection GetAllInactiveProfiles(
            ProfileAuthenticationOption authenticationOption, 
            DateTime userInactiveSinceDate, 
            int pageIndex, 
            int pageSize, 
            out int totalRecords)
        {
            throw new NotSupportedException();
        }

Usage Example

        public void GivenConfirmedUsersWhenGetAllInactiveProfilesThenNotSupportedException(ProfileAuthenticationOption option)
        {
            // arrange
            var testClass = new BetterProfileProvider();

            // act // assert
            int totalRecords;
            Assert.Throws<NotSupportedException>(
                () =>
                testClass.GetAllInactiveProfiles(
                    option, DateTime.MinValue, 0, 10, out totalRecords));
        }