Esempio n. 1
0
        public void assure_its_added()
        {
            var command = new ViewModelCommand("Login");

            When("adding a ViewModelCommand", () =>
                viewModel.AddCommand(command));

            Then(() =>
                 viewModel.Commands.ShouldContain(command));
        }
Esempio n. 2
0
        public void AddCommand(ViewModelCommand command)
        {
            ThrowExceptionIfNull(command, "command");

            _commands.Add(command);
        }
Esempio n. 3
0
 public void Setup()
 {
     When("ViewModelCommand is spawned", () =>
         viewModelCommand = new ViewModelCommand("Login"));
 }
Esempio n. 4
0
        public void AddCommand(ViewModelCommand command)
        {
            ThrowExceptionIfNull(command, "command");

            _commands.Add(command);
        }