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

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

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

Usage Example

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

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