public void ShouldRecognizeChangeEmployeePaymentTypeToDirectCommand(int id, string bank, string account) { var expectedChangeEmployeePaymentTypeToDirectCommand = new ChangeEmployeePaymentTypeToDirectCommand(id, bank, account); var command = $"ChgEmp {id} Direct \"{bank}\" \"{account}\""; var changeEmployeePaymentTypeToDirectCommand = ChangeEmployeePaymentTypeToDirectCommandParser.Parse(command); changeEmployeePaymentTypeToDirectCommand.Should().Be(expectedChangeEmployeePaymentTypeToDirectCommand); }
public void ShouldErrorWhenCommandStructureIsInappropriate(string command) { Action action = () => ChangeEmployeePaymentTypeToDirectCommandParser.Parse(command); action.ShouldThrow <ChangeEmployeePaymentTypeToDirectCommandStructureException>(); }