public void CreateToday_AreSame() { var res = _trainingDateService.CreateToday(); var expected = new OutputDtoAddTrainingDate(res.Date); Assert.AreEqual(expected, res); }
public void Create_InputDtoAddTrainingDate_AreSame() { var input = new InputDtoAddTrainingDate(new DateTime(2021, 12, 2)); _trainingDateRepository.Create(input.Date).Returns(new TrainingDate(input.Date)); var res = _trainingDateService.Create(input); var expected = new OutputDtoAddTrainingDate(input.Date); Assert.AreEqual(expected, res); }