public async Task Delete_Country_With_Wrong_Id_Should_Throw_Exception()
        {
            var command = new DeleteCountryCommand
            {
                Id = -1
            };

            var commandHandler = new DeleteCountryCommandHandler(_context);

            await commandHandler.Handle(command, CancellationToken.None).ShouldThrowAsync <NotFoundException>();
        }
        public async Task Delete_Country_Should_Remove_Country_From_Database()
        {
            var command = new DeleteCountryCommand
            {
                Id = 1
            };

            var commandHandler = new DeleteCountryCommandHandler(_context);

            await commandHandler.Handle(command, CancellationToken.None);

            var result = _context.Countries
                         .Where(x => x.Id.Equals(command.Id))
                         .FirstOrDefault();

            result.ShouldBeNull();
        }
 public DeleteCountryCommandHandlerTests()
 {
     countryId = CommandArrangeHelper.GetCountryId(context);
     sut       = new DeleteCountryCommandHandler(context);
 }