コード例 #1
0
        // Method that returns a single ProductType
        // Accepts 1 arguement which is ProductTypeId
        // Authored by : Tamela Lerma
        public void GetSingleProductType(string name)
        {
            int productTypeId = _register.AddProductType(name);

            ProductType productType = _register.GetProductType(productTypeId);

            Assert.True(productType.Id == productTypeId);
        }