BetterMembership.IntegrationTests.Helpers.FluentProviderExtensions.WithInvalidPasswordAttempts C# (CSharp) Метод

WithInvalidPasswordAttempts() статический приватный Метод

static private WithInvalidPasswordAttempts ( this fluent, int attempts ) : FluentProvider
fluent this
attempts int
Результат FluentProvider
        internal static FluentProvider<TestUser> WithInvalidPasswordAttempts(
            this FluentProvider<TestUser> fluent, int attempts)
        {
            for (var i = 0; i < attempts; i++)
            {
                fluent.Provider.ValidateUser(fluent.Value.UserName, "invalidPassword");
            }

            return fluent;
        }
    }
FluentProviderExtensions