public void ShopEpochNullTest() { Shop shop = new Shop(); shop.CreationEpoch = null; Assert.IsFalse(shop.CreationDate.HasValue); }
public void ShopListingCountSetNullTest() { Shop shop = new Shop(); shop.ListingCount = "null"; Assert.IsFalse(shop.ListingCountInt.HasValue); }
public void ShopDatesNullByDefaultTest() { Shop shop = new Shop(); Assert.IsFalse(shop.CreationEpoch.HasValue); Assert.IsFalse(shop.CreationDate.HasValue); }
public void ShopViewModelCreateTest() { Shop shop = new Shop(); ShopViewModel shopViewModel = new ShopViewModel(shop); Assert.IsNotNull(shopViewModel); Assert.IsNotNull(shopViewModel.Shop); }
public void ShopCreationEpochTest() { Shop shop = new Shop(); shop.CreationEpoch = 1; Assert.AreEqual(1, shop.CreationEpoch); Helper.AssertDateIs(shop.CreationDate.Value, 1970, 1, 1, 0, 0, 1); }
public void ShopCreationDateTest() { Shop shop = new Shop(); shop.CreationDate = new DateTime(1970, 1, 1); Assert.AreEqual(new DateTime(1970, 1, 1), shop.CreationDate); Assert.AreEqual(0, shop.CreationEpoch); }
public void ShopListingCountSetTest() { Shop shop = new Shop(); shop.ListingCount = "1"; Assert.IsTrue(shop.ListingCountInt.HasValue); Assert.AreEqual(1, shop.ListingCountInt.Value); }
public void ShopVacationTrueWhenSetTest() { Shop shop = new Shop(); shop.IsVacation = "1"; Assert.AreEqual("1", shop.IsVacation); Assert.IsTrue(shop.IsVacationFlag); }
public void ShopVacationFalseByDefaultTest() { Shop shop = new Shop(); Assert.IsTrue(string.IsNullOrEmpty(shop.IsVacation)); Assert.IsFalse(shop.IsVacationFlag); }
public void ShopSimpleCreateTest() { Shop shop = new Shop(); Assert.IsNotNull(shop); }
/// <summary> /// Initializes a new instance of the ShopViewModel class /// </summary> /// <param name="shop">the shop Data transfer object</param> public ShopViewModel(Shop shop) { this.shop = shop; this.WebLinkClickCommand = new HyperlinkNavigateCommand(); }