Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Created December 5, 2015 06:13
Show Gist options
  • Save JayBazuzi/ec09dfc3e6a79d0dad37 to your computer and use it in GitHub Desktop.
Save JayBazuzi/ec09dfc3e6a79d0dad37 to your computer and use it in GitHub Desktop.
static bool ShouldAcceptConnectionRequest(bool firstUserHasConnections, bool secondUserHasConnections)
{
return !firstUserHasConnections && !secondUserHasConnections;
}
public void AcceptingConnectionRequestFromUnconnectedUserShouldSucceed()
{
ShouldAcceptConnectionRequest(firstUserHasConnections: false, secondUserHasConnections: false)
.Should().BeTrue();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment