# Arrange

In this section we are in charge of initializing all the dependencies (real or [test doubles](https://blog.fiftywords.co/test-double)) required to simulate the situation we are going to verify in the [unit test](https://blog.fiftywords.co/unit-test).

```
test("the airplane state should be FLYING after takeoff", () => {
  /**
   * Notice that we clearly mark the Arrange section
   * and we initialize in that section all the required
   * dependencies for creating the unit that we'll be
   * testing (An Airplane instance, in this case)
   */

  /// Arrange
  const fakeEngine: IEngine = new FakeEngine();
  const fakeFuelTank: ITank = new FakeTank();
  const airplane: Airplane = new Airplane();

  /// Rest of the test
});
```

[🇨🇴 Versión en Español](https://blog.cincuentapalabras.co/arreglar)
