public void PostApiController_PostPost()
        {
            var postApiEntity = new PostApiEntity {
                Id = 6
            };
            var result = _postsApiController.PostPost(postApiEntity) as CreatedAtRouteNegotiatedContentResult <Post>;
            var model  = Mapper.Map <Post>(postApiEntity);

            _postRepository.ReceivedWithAnyArgs().Add(model);
            _postRepository.ClearReceivedCalls();
        }
        public void PostApiController_PutPost()
        {
            var postApiEntity = new PostApiEntity {
                Id = 6
            };
            var result = _postsApiController.PutPost(postApiEntity) as StatusCodeResult;
            var model  = Mapper.Map <Post>(postApiEntity);

            _postRepository.ReceivedWithAnyArgs().Update(model);
            _postRepository.ClearReceivedCalls();
        }