public void StoreTheName() { var command = (RepromptForSurname)MagicYearCalculator.ProcessCommand(new PromptForSurname(name), invalidSurname); Assert.Equal(name, command.name); }
public void PromptForAnnualSalary() { var command = MagicYearCalculator.ProcessCommand(new PromptForSurname(), validSurname); Assert.IsType <PromptForAnnualSalary>(command); }
public void RepromptForSurname() { var command = MagicYearCalculator.ProcessCommand(new PromptForSurname(), invalidSurname); Assert.IsType <RepromptForSurname>(command); }
public void PromptForSurname() { var command = MagicYearCalculator.ProcessCommand(new RepromptForName(), validName); Assert.IsType <PromptForSurname>(command); }
public void StoreTheName() { var command = (PromptForSurname)MagicYearCalculator.ProcessCommand(new ShowWelcomeMessageAndPromptForName(), validName); Assert.Equal(validName, command.name); }
public void StoreTheSurname() { var command = (PromptForAnnualSalary)MagicYearCalculator.ProcessCommand(new PromptForSurname(), validSurname); Assert.Equal(validSurname, command.surname); }
public void RepromptForName() { var command = MagicYearCalculator.ProcessCommand(new ShowWelcomeMessageAndPromptForName(), invalidName); Assert.IsType <RepromptForName>(command); }