Exemplo n.º 1
0
        public void CreateProductName()
        {
            // arrange
            var expected = "Product Name";

            // act
            var productName = new ProductName(expected);

            // assert
            Assert.Equal(expected, productName.ToString());
        }
Exemplo n.º 2
0
 public static Product CreateProduct(Guid id, ProductId productId, ProductName name)
 {
     return new Product(id, productId, name);
 }