コード例 #1
0
        public void DeleteFlavorByIdShouldReturnTrueIfRepositoryThrowsNoExceptions()
        {
            // Arrange
            var mock   = new Mock <IPizzaFlavorRepository>();
            var mockId = Guid.NewGuid();

            Repository = mock.Object;
            Service    = new PizzaFlavorService(Repository);

            // Act
            var result = Service.Delete(mockId);

            // Assert
            Assert.IsTrue(result);
        }