public void GiftGuideEpochNullTest()
        {
            GiftGuide giftGuide = new GiftGuide();
            giftGuide.CreationEpoch = null;

            Assert.IsFalse(giftGuide.CreationDate.HasValue);
        }
        public void GiftGuideDatesNullByDefaultTest()
        {
            GiftGuide giftGuide = new GiftGuide();

            Assert.IsFalse(giftGuide.CreationEpoch.HasValue);
            Assert.IsFalse(giftGuide.CreationDate.HasValue);
        }
        public void GiftGuideCreationEpochTest()
        {
            GiftGuide giftGuide = new GiftGuide();
            giftGuide.CreationEpoch = 1;

            Assert.AreEqual(1, giftGuide.CreationEpoch);
            Helper.AssertDateIs(giftGuide.CreationDate.Value, 1970, 1, 1, 0, 0, 1);
        }
        public void GiftGuideCreationDateTest()
        {
            GiftGuide giftGuide = new GiftGuide();
            giftGuide.CreationDate = new DateTime(1970, 1, 1);

            Assert.AreEqual(new DateTime(1970, 1, 1), giftGuide.CreationDate);
            Assert.AreEqual(0, giftGuide.CreationEpoch);
        }
        public void GiftGuideViewModelCreateTest()
        {
            GiftGuide giftGuide = new GiftGuide();
            GiftGuideViewModel giftGuideViewModel = new GiftGuideViewModel(giftGuide);

            Assert.IsNotNull(giftGuideViewModel);
            Assert.IsNotNull(giftGuideViewModel.GiftGuide);
        }
 public void GiftGuideSimpleCreateTest()
 {
     GiftGuide giftGuide = new GiftGuide();
     Assert.IsNotNull(giftGuide);
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the GiftGuideViewModel class
 /// </summary>
 /// <param name="giftGuide">the gift guide Data transfer object</param>
 public GiftGuideViewModel(GiftGuide giftGuide)
 {
     this.giftGuide = giftGuide;
 }