Exemplo n.º 1
0
        public void will_return_monthly_eu_when_tax_not_set()
        {
            var packageId = 1;

            var newPackage = new Package
            {
                Id           = packageId,
                Name         = "EU Package",
                Description  = "This is package service for EU citizens",
                MonthlyPrice = 1200,
                AnnualPrice  = 10500,
                PackageType  = 1
            };

            _packageRepository.Setup(x => x.GetById(packageId)).Returns(newPackage);

            var calculated = _sut.CalculateTotalPrice(packageId, (int)SubscriptionTypeEnum.Monthly, TimeZoneInfo.Local);

            Assert.Equal(calculated, 1200);
        }