Esempio n. 1
0
        private async Task Run()
        {
            var movieCmd  = new MovieCommand(Context, Setting);
            var tvShowCmd = new TvShowCommand(Context, Setting);

            await Execute(movieCmd).ConfigureAwait(false);
            await Execute(tvShowCmd).ConfigureAwait(false);
        }
        public void Should_contain_a_notification_when_properties_movie_is_invalid()
        {
            var movie = new MovieCommand();

            movie.Validate();

            movie.Notifications.Should().ContainItemsAssignableTo <Notification>();
        }
Esempio n. 3
0
        public void SetMovieCommand(string[] instanceNames, MovieCommand cmd)
        {
            List <string> names = new List <string>();

            foreach (string name in instanceNames)
            {
                names.Add(name);
            }
            m_movieCommands.Add(names, cmd);
            ExecMovieCommand();
        }
Esempio n. 4
0
 public static Movie Create(MovieCommand command)
 => new Movie(command.Id, command.Title, command.Year, command.Score);
Esempio n. 5
0
	public void SetMovieCommand(string[] instanceNames, MovieCommand cmd)
	{
		List<string> names = new List<string>();
		foreach (string name in instanceNames)
			names.Add(name);
		m_movieCommands.Add(names, cmd);
		ExecMovieCommand();
	}