Exemplo n.º 1
0
        public void ChildTeller_TellMessageWithNoSender_TellsRecipient()
        {
            //arrange
            TellChildWaiter sut = CreateTellChildWaiter();

            //act
            sut.TellMessage(ChildWaiter, this, Recipient, Message, ExpectedChildrenCount);

            //assert
            RecipientMock.Verify(actorRef => actorRef.Tell(Message, TestActor));
        }
Exemplo n.º 2
0
        public void TellWaiter_TellMessage_TellsRecipient()
        {
            //arrange
            TellWaiter sut = CreateTellWaiter();

            //act
            sut.TellMessage(Waiter, this, Recipient, Message, ExpectedEventCount, Sender);

            //assert
            RecipientMock.Verify(actorRef => actorRef.Tell(Message, Sender));
        }