public void AddPublisher_GetsInvalidItem_ReturnsStatusCodeBadRequest() { // Arrange _mockPublisher.Setup(a => a.AddEntity(It.IsAny <PublisherDTO>())).Throws(new ValidationException(string.Empty, string.Empty)).Verifiable(); // Act var res = _controller.New(); // Assert Assert.AreEqual(typeof(ViewResult), res.GetType()); }