Exemple #1
0
        /// <summary>
        /// The main.
        /// </summary>
        /// <param name="args">
        /// The args. 
        /// </param>
        private static void Main(string[] args)
        {
            var c = new SingletonClient();
            c.UseSingleton();

            var d = new LicenseClient();
            d.ExpiredLicense();
            d.LicenseIsValid();

            var x = new License(Instant.FromUtc(2012, 10, 17, 0, 0, 0), SystemClock.Instance);
            if (x.HasExpired)
            {
                Debug.WriteLine("Program License Expired");
            }

            var y = new DiaryClient();
            y.FormatTodayIsoUtc();
        }
Exemple #2
0
 private static void SingletonTest()
 {
     var s = new SingletonClient();
     s.UseSingleton();
 }