public void ProductEmptyName_ShouldThrow() { // Arrange var sut = new ProductBusinessLogic( Mock.Of <IProductRepository>(), Mock.Of <IMapper>(), new CreateProductValidator(), Mock.Of <UpdateProductValidator>()); // Act // Assert Assert.Throws <ValidationException>(() => { sut.AddNew(new CreateProductDto() { ProductName = string.Empty }); }); }