예제 #1
0
        public void ReadDefaultTermsConfig()
        {
            var x = new DefaultTermsWrapper();
            Assert.IsFalse(x.IsLoaded);
            x.Load();
            Assert.IsTrue(x.IsLoaded);
            Assert.IsTrue(x.Exists());
            Assert.IsNotNull(x.Data);

            Assert.IsNotNull(x.Data);
            Assert.IsNotNull(x.Data.WeeklyExpenses);
            Assert.IsNotNull(x.Data.Start);
            Assert.IsNotNull(x.Data.DurationWeeks);
            Assert.IsNotNull(x.Data.DailyRate);
            Assert.IsNotNull(x.Data.LieuPaymentWeeks);
            Assert.IsNotNull(x.Data.VatRateMargin);
            Assert.IsNotNull(x.Data.VatRateDue);
        }
 public void WriteDefaultTermsConfig()
 {
     var x = new DefaultTermsWrapper();
     x.Save();
     Assert.IsTrue(File.Exists(x.FullFileName));
 }