Inheritance: IUserProfileServices
        public async Task CreateProfileTest(string input, string username, string domain, string sid, bool isValidParse, bool isValidAccount, bool isExistingAccount)
        {
            var creator     = UserProfileServiceMock.Create(username, domain, sid, isValidParse, isValidAccount, isExistingAccount);
            var pipeFactory = new UserProfileTestNamedPipeTestStreamFactory();

            await CreateProfileTestRunnerAsync(creator, pipeFactory, input, isValidParse, isValidAccount, isExistingAccount, 500, 500);
        }
Ejemplo n.º 2
0
 public static UserProfileServiceMock Create(string username, string domain, string password, bool validParse, bool validAccount, bool existingAccount) {
     var creator = new UserProfileServiceMock();
     creator.ExpectedUsername= username;
     creator.ExpectedDomain= domain;
     creator.ExpectedPassword= password;
     creator.TestingValidParse = validParse;
     creator.TestingValidAccount = validAccount;
     creator.TestingExistingAccount = existingAccount;
     return creator;
 }
Ejemplo n.º 3
0
        public static UserProfileServiceMock Create(string username, string domain, string sid, bool validParse, bool validAccount, bool existingAccount)
        {
            var creator = new UserProfileServiceMock();

            creator.ExpectedUsername       = username;
            creator.ExpectedDomain         = domain;
            creator.ExpectedSid            = sid;
            creator.TestingValidParse      = validParse;
            creator.TestingValidAccount    = validAccount;
            creator.TestingExistingAccount = existingAccount;
            return(creator);
        }