Esempio n. 1
0
        public void Print_WhenInvoked_ShouldReturnCategoryDetailsInValidStringFormat()
        {
            // Arrange
            var category = new Category("example");

            // Act
            var executionResult = category.Print();

            // Assert
            Assert.AreEqual("example category - 0 products in total", executionResult);
        }
        public ICategory CreateCategory(string name)
        {
            ICategory category = new Category(name);

            return category;
        }
Esempio n. 3
0
 public Category CreateCategory(string name)
 {
     // TODO: create category
     Category newCategory = new Category(name);
     return newCategory;
 }