public void CommandExecutionRepository_Add_Saves() { var repository = new CommandExecutionRepository(_context); repository.Add(new CommandExecution("test", "test")); _context.CallsToSaveChanges.Should().Be(1); }
public void CommandExecutionRepository_Add_Succeeds() { var repository = new CommandExecutionRepository(_context); var execution = new CommandExecution("test", "test"); repository.Add(execution); _context.CommandExecutions.Should().Contain(execution); }
public AuditDecoratorTests() { _repository = new CommandExecutionRepository(_context); }