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>(); }
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(); }
public static Movie Create(MovieCommand command) => new Movie(command.Id, command.Title, command.Year, command.Score);
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(); }