public async Task When_creating_a_new_game_with_existing_name_then_a_domain_exception_should_be_thrown()
        {
            Example1DbContext context = GetContext();

            var game = Game.Create(NAME).WithId(5);

            context.Games.Add(game);
            await context.Save(default);
Exemplo n.º 2
0
 public GamesRepository(Example1DbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }