示例#1
0
        public async void Insert_ShouldNotInsertAInvalidProduct()
        {
            // Arrange
            var product = _productTestsFixture.GetInvalidProduct();

            // Act
            var result = await _productService.Insert(product);

            // Assert
            _productRepositoryMock.Verify(x => x.Insert(product), Times.Never);
            result.Should().BeNull();
        }