Exemple #1
0
        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);
        }
Exemple #2
0
        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();
        }
Exemple #3
0
 public void SetDetermineType(DetermineType dt)
 {
     determineType = dt;
 }
Exemple #4
0
 public AgentResponse(string text)
 {
     responseTextAlt = new string[10];
     determineType   = DetermineType.OneAnswer;
     SetResponseText(text);
 }