Exemplo n.º 1
0
        public void RemoveFriendRequestTest()
        {
            var request = new FriendRequestDummyCreator().Create();

            friendService.RemoveRequest(request);

            friendRepository.Verify(m => m.Add(It.IsAny <Friend>()), Times.Never);
            friendRepository.Verify(m => m.RemoveFriendshipRequest(It.Is <FriendRequest>(r => r == request)), Times.Once);
            warningService.Verify(m => m.AddWarning(It.IsAny <int>(), It.IsAny <string>()), Times.Once);
        }