Exemplo 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);
        }
Exemplo n.º 2
0
        public ICategory CreateCategory(string name)
        {
            ICategory category = new Category(name);

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