You could create the Mock with MockBehavior.Strict, e.g.
this.postService = new Mock<IPostService>(MockBehavior.Strict);
That way, if you don’t Setup any expectations, any calls to this.postService will fail
You could create the Mock with MockBehavior.Strict, e.g.
this.postService = new Mock<IPostService>(MockBehavior.Strict);
That way, if you don’t Setup any expectations, any calls to this.postService will fail