public void CreateFromDateTime_DateTime_TrainingDateNotSame() { DateTime date = new DateTime(2000, 9, 2); var res = _trainingDateFactory.CreateFromDateTime(date); ITrainingDate trainingDate = new TrainingDate(date.AddDays(15)); Assert.AreNotEqual(trainingDate, res); }
public void Create_IdDateTime_TrainingDateAreSame(int id) { DateTime date = new DateTime(2000, 9, 2); var res = _trainingDateFactory.Create(id, date); ITrainingDate trainingDate = new TrainingDate(id, date); Assert.AreEqual(trainingDate, res); }