Пример #1
0
        public void AddCustomPizza_Returns_Data()
        {
            var pizza = CustomPizza();

            pizzaDalMock = new Mock <IPizzaDal>();
            pizzaDalMock.Setup(i => i.AddPizza(pizza)).Returns(Guid.NewGuid);
            _service = new PizzaService(pizzaDalMock.Object);
            // Act
            var result = _service.AddPizza(pizza);

            // Assert
            Assert.NotNull(result);
        }