예제 #1
0
        public void Can_Find_Product_Apple()
        {
            //Arrange
            IUser g    = new Guest();
            var   prod = new Product()
            {
                Name = "Apple"
            };

            Store.Products.Add(prod);
            //Act
            var find = g.FindProductByName("Apple");

            //Assert
            Assert.Contains(find, Store.Products);
        }