Beispiel #1
0
        public void Dado_um_comando_inválido()
        {
            var command = new CreatePlayerCommand("", 1220, 25007);

            command.Validate();
            Assert.AreEqual(command.Valid, false);
        }
Beispiel #2
0
        public void Dado_um_comando_válido()
        {
            var command = new CreatePlayerCommand("Ronaldo", 10, 25);

            command.Validate();
            Assert.AreEqual(command.Valid, true);
        }
 public CreatePlayerCommandTest()
 {
     _validCommand.Validate();
     _invalidCommand.Validate();
     _nullCommand.Validate();
 }
Beispiel #4
0
 public CreatePlayerHandlerTests()
 {
     _validCommand.Validate();
     _invalidCommand.Validate();
     _nullCommand.Validate();
 }