public void ShouldRecognizeChangeEmployeeAddressCommand(int id, string address) { var expectedChangeEmployeeAddressCommand = new ChangeEmployeeAddressCommand(id, address); var command = $"ChgEmp {id} Address \"{address}\""; var changeEmployeeAddressCommand = ChangeEmployeeAddressCommandParser.Parse(command); changeEmployeeAddressCommand.Should().Be(expectedChangeEmployeeAddressCommand); }
public void ShouldErrorWhenCommandStructureIsInappropriate(string command) { Action action = () => ChangeEmployeeAddressCommandParser.Parse(command); action.ShouldThrow <ChangeEmployeeAddressCommandStructureException>(); }