示例#1
0
        public void Test()
        {
            // Arrange
            const int orderId   = 481; // Order Date 2013-01-09
            var       dataLayer = new DataLayer();
            var       sut       = new BusinessService(dataLayer);

            // Act
            var result = sut.CalculateShipping(orderId);

            // Assert
            Assert.Equal(11, result);
        }
        public void Test()
        {
            // Arrange
            const int orderId = 481; // Order Date 2013-01-09
            var dataLayer = new DataLayer();
            var sut = new BusinessService(dataLayer);

            // Act
            var result = sut.CalculateShipping(orderId);

            // Assert
            Assert.Equal(11, result);
        }