Beispiel #1
0
        public void SendConnectionRequest_ForJsonWithNullValues_ConnectionRequestCreated()
        {
            var sut = new FakeConnectionsClientWithNullValues(symClient.Object);
            InboundConnectionRequest result = sut.sendConnectionRequest(USER_ID);

            Assert.IsNotNull(result);
        }
Beispiel #2
0
        public void SendConnectionRequest_forGivenUser_correctlyReturnsConnections()
        {
            var sut = new ConnectionsClient(symBotClient);
            InboundConnectionRequest connectionRequest = sut.sendConnectionRequest(userReceiver.id);

            Assert.IsNotNull(connectionRequest);
            Assert.AreEqual(userReceiver.id, connectionRequest.userId);
        }