Skip to content

Instantly share code, notes, and snippets.

@thecopy
Last active December 17, 2015 06:59
Show Gist options
  • Save thecopy/5569616 to your computer and use it in GitHub Desktop.
Save thecopy/5569616 to your computer and use it in GitHub Desktop.
Enumerable.Range(0, range).ToList().ForEach(i =>
{
clients[i] = new ControllClient(LocalHostUrl);
clients[i].Connect();
if(!clients[i].LogOn("username", "password")) // <----------- Here a ConnectedClient is added!
throw new AssertionFailure("Could not log on user " + i);
});
var session = (ISession)Bootstrapper.Kernel.GetService(typeof(ISession));
var user = session.Get<ControllUser>(1);
Assert.AreEqual(50, user.ConnectedClients.Count); // FAILS!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment