예제 #1
0
        static bool ValidateCustomerClass()
        {
            var validator = new Utils.Validator("First.Customer");

            validator.AddProperty("FirstName", typeof(string));
            validator.AddProperty("LastName", typeof(string));
            validator.AddProperty("DateOfBirth", typeof(DateTime));

            validator.AddMethod("Age", typeof(int));
            validator.AddMethod("Name", typeof(string));
            validator.AddMethod("Print", typeof(void));

            return(validator.Validate());
        }
 public HangmanEngine(IPrinter printer, IReader inputReader, CommandFactory commandFactory, Validator validator, HangmanGame hangmanGame)
     : base(printer, inputReader, commandFactory, validator, hangmanGame)
 {
 }