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); }
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; }
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); }