public void GetFullCommand_WithChecksumAndMultipleParameters_ReturnsFullCommandWithChecksumAndParameters() { CompanyCommand command = new CompanyCommand("Test{0}a{1}", true, 5); var fullCommand = command.GetFullCommand("P1", "P2"); fullCommand.Should().Be("(TestP1aP204)"); }
public void GetFullCommand_WithoutChecksum_ReturnsFullCommandWithoutChecksum() { CompanyCommand command = new CompanyCommand("Test", false, 5); var fullCommand = command.GetFullCommand(); fullCommand.Should().Be("(Test)"); }
public void GetFullCommand_WithChecksumAndSingleParameter_ReturnsFullCommandWithChecksumAndParameter() { CompanyCommand command = new CompanyCommand("Test{0}", true, 5); var fullCommand = command.GetFullCommand("P"); fullCommand.Should().Be("(TestPF0)"); }
public Root( VendorCommand vendor, InvoiceCommand invoice, GLAccountCommand glaccount, VatCodeCommand vatcode, CompanyCommand company, CredentialsCommand credentials) { Add(vendor); Add(invoice); Add(glaccount); Add(vatcode); Add(credentials); Add(company); Add(new Option <bool>("--debug", "Run command in debug mode to view detailed logs")); }
public MainViewModel() { SelectedProfile = new ProfileModel(); //pulls models from external source but no logic which collections are for try { profileCommand = new ProfileCommand(_connectionString); //list that comes from the database will be added to Emplyees Bindable collection Profiles.AddRange(profileCommand.GetList()); EmployeeCommand employeeCommand = new EmployeeCommand(_connectionString); //list that comes from the database will be added to Emplyees Bindable collection Employees.AddRange(employeeCommand.GetList()); CompanyCommand companyCommand = new CompanyCommand(_connectionString); //list that comes from the database will be added to Emplyees Bindable collection Companies.AddRange(companyCommand.GetList()); } catch (Exception ex) { AppStatus = ex.Message; NotifyOfPropertyChange(() => AppStatus); } }