Example #1
0
        public void GetAllCommentToGame_GameKey_GetCommentsByGameKeyCalled()
        {
            _commentService.Setup(service => service.GetCommentsByGameKey(_fakeGameKey)).Returns(_fakeComment);

            _sut.GetAllCommentToGame(_fakeGameKey);

            _commentService.Verify(s => s.GetCommentsByGameKey(It.IsAny <string>()), Times.Once);
        }