Ejemplo 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);
        }
Ejemplo n.º 2
0
        public void Should_contain_a_notification_when_properties_movie_is_invalid()
        {
            var movie = new MovieCommand();

            movie.Validate();

            movie.Notifications.Should().ContainItemsAssignableTo <Notification>();
        }
Ejemplo 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();
        }
Ejemplo n.º 4
0
 public static Movie Create(MovieCommand command)
 => new Movie(command.Id, command.Title, command.Year, command.Score);
Ejemplo 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();
	}