public Validator(IPorts ports)
            {
                _ports = ports;

                RuleFor(v => v.Title)
                .NotEmpty().WithMessage("Title is required.")
                .MaximumLength(200).WithMessage("Title must not exceed 200 characters.")
                .MustAsync(BeUniqueTitle).WithMessage("The specified title already exists.");
            }
Exemple #2
0
 public HostEntity(IList<IHost> hosts, string nameOs, string hostName, IPorts ports, IServer server, IFirewall firewall, IOS OS)
 {
     _hosts = new ReadOnlyCollection<IHost>(hosts);
     _nameOS = nameOs;
     _hostName = hostName;
     _ports = ports;
     _server = server;
     _firewall = firewall;
     _OS = OS;
 }
Exemple #3
0
        public Computer()
        {
            ComputerRunning = true;
            _beeperDevice   = new Beeper();

            _displayUnit = new Display(_ram);
            _IOdataBus   = new Bus16Bit(_beeperDevice);

            _z80 = new Z80CPU(_ram, _IOdataBus);
            _z80.Reset();

            TestVideoBuffer();
        }
 public Handler(IPorts ports)
 {
     _ports = ports;
 }
Exemple #5
0
 public HostEntity( IList<IHost> hosts, string nameOs, string hostName, IPorts ports )
     : this(hosts, nameOs, hostName, ports, null, null, null)
 {
 }