public void Can_Call_Proxy_For_User() { using (FlowUsersService proxy = new FlowUsersService("FlowUsersService_Endpoint")) { proxy.IsValidUser(new IsValidUserRequest { Domain = "google", User = "******" }); } }
/// <summary> /// Get User From Name /// </summary> /// <param name="usersService"></param> /// <param name="domain">Domain</param> /// <param name="u">User</param> /// <returns>User</returns> private static string GetUserFromName(IFlowUsersService usersService, string domain, string u) { if (usersService == null) { using (var usersOperations = new FlowUsersService()) { return(usersOperations.IsValidUser(new IsValidUserRequest { Domain = domain, User = u }).IsValid ? u : string.Empty); } } return(usersService.IsValidUser(new IsValidUserRequest { Domain = domain, User = u }).IsValid ? u : string.Empty); }