VicPD had run "John Stings" in the past. Usually by setting up an undercover on the street. Sometimes they will watch an area and bust people. But it has been a few years since I heard of anything happening. Its usually complaint driven, and they might do a blitz. When the laws changed they said they had bigger fish to fry but will respond to complains. As for online stings, I think Saanich will run a few so often but only for underage or again complaint driven.
Entrapment, the whole "if your a cop you have to tell me" is a lie and if you are that far already they have you. If you're walking down the street and someone asks you "hey cutie want to bang $50" and you say "well I wasn't looking to but since you're offering why not" and they arrest you, that entrapment. They propositioned you for something that you didn't have previous intent to do but they offered, this is entrapment.
Now if you're walking down the street and see a hottie, and you walk up to her and say " hey cutie you're not a cop right?" Them: "why no sugar what you need?" "how about a BJ, How Much"? Them:"Well I'd say a few months, you're under arrest for communicating for prostitution (can't remember exact legal term) propositioning etc. You: "but I asked if you were a cop, and you lied! If I knew you were a cop I wouldn't of asked, so I'm Safe! and then they say "sorry but you had intent to communicate for sex with me if I wasn't a cop and probably would keep looking. Either way cop or not you had the intent of buying a BJ from whoever was selling. See you in court.
Thats the way I understand it, anyone else is free to chime in with additional info.
Edit: From Wikipedia
There are two different forms of entrapment in Canadian law.
The first type of entrapment, "random virtue testing", occurs when the police offer an individual the opportunity to commit a crime without reasonable suspicion that either that individual or where that individual is located is associated with the criminal activity under investigation. If police have such a reasonable suspicion, they are still limited to providing only an opportunity to commit the offence.
The second form of entrapment occurs when the police go beyond merely providing an opportunity to commit an offence but actually induce the commission of the offense. Some factors a court may consider when deciding whether police have induced the offence include the type of crime being investigated, whether an average person would have been induced, the persistence and number of attempts made by the police, the type of inducement used (fraud, deceit, reward, ...), and the existence of expressed or implied threats.
The question of entrapment is considered only after there has been a finding of guilt. If, after finding the accused guilty, the court determines that the accused was entrapped, the court enters a judicial stay of proceedings. That is similar to an acquittal.