public void CalculateType_FechaRecibida_ResultadoCorrecto(string cFechaEvaluar, RangeType enumType) { DateTime dtFechaEvaluar = Convert.ToDateTime(cFechaEvaluar); var SUT = new DetermineType(); SUT.ObtenerFecha = () => new DateTime(2020, 1, 28, 22, 50, 0); var result = SUT.CalculateType(dtFechaEvaluar); Assert.AreEqual(enumType, result); }
static void Main(string[] args) { IDetermineType determineType = new DetermineType(); IValidateDate validateDate = new ValidateDate(); IDetermineTypeFactory determineTypeFactory = new DetermineTypeFactory(); IEventService eventService = new EventsService(determineType, validateDate, determineTypeFactory); IFileService fileService = new FileService(validateDate); IObtainFileService obtainFileService = new ObtainFileService(); IValidateFile validateFile = new ValidateFile(); IDisplayInfoService displayInfoService = new DisplayInfoService(); EventManagement eventManagement = new EventManagement(eventService, fileService, obtainFileService, validateFile, displayInfoService); eventManagement.Init(); }
public void SetDetermineType(DetermineType dt) { determineType = dt; }
public AgentResponse(string text) { responseTextAlt = new string[10]; determineType = DetermineType.OneAnswer; SetResponseText(text); }