public static bool ValidTradePassword(IUser user) { UserFactory userFactory = UserFactory.Create(user.UserRole); return(userFactory.ValidTradePassword(user.Username, user.TradePassword)); }