public void ShouldIgnoreRequestToWriteItToDestination() { //GIVEN var noConnector = new NoConnector(); //WHEN - THEN new Action(() => noConnector.WriteTo(Any.Exploding <IConnectorDestination>())) .Should().NotThrow(); }
public void ShouldReportThatUserIsNotFoundWhenAttemptingConnectionWithIt() { //GIVEN var noConnector = new NoConnector(); var connectionInProgress = Substitute.For <IConnectionInProgress>(); //WHEN noConnector.AttemptConnectionWith(Any.Exploding <IConnectee>(), connectionInProgress); //THEN XReceived.Only(() => connectionInProgress.UserNotFound()); }