Esempio n. 1
0
        public void ShouldIgnoreRequestToWriteItToDestination()
        {
            //GIVEN
            var noConnector = new NoConnector();

            //WHEN - THEN
            new Action(() => noConnector.WriteTo(Any.Exploding <IConnectorDestination>()))
            .Should().NotThrow();
        }
Esempio n. 2
0
        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());
        }