public void CanGetPetByID() { PetService service = new PetService(); Assert.IsNotNull(service); Pet loadedPet = service.GetById(0); Assert.AreEqual("Patches", loadedPet.Name); }
public void CanChangeTime() { PetService service = new PetService(); service.UpdateLastMealDate(0); Pet loadedPet = service.GetById(0); Debug.WriteLine("========================================================================="); Debug.WriteLine("==================== Testing Can Change Time ! ================"); Debug.WriteLine("========================================================================="); Debug.WriteLine(String.Format("DateTime.Now : {0} , DB Time Stamp: {1}", DateTime.Now, loadedPet.Last_Meal_Date)); Debug.WriteLine("========================================================================="); Assert.AreEqual(DateTime.Now.Minute, loadedPet.Last_Meal_Date.Minute); }