Lzakoajzswc7vrg8espp
SkillsCast

Lightning Talk: Disposable xUnit Tests with AutoFixture

11th September 2019 in London at CodeNode

There are 18 other SkillsCasts available from ProgNET London 2019

Please log in to watch this conference skillscast.

Https s3.amazonaws.com prod.tracker2 resource 41088130 skillsmatter conference skillscast o9nohu

AutoFixture allow to easily create test objects and inject them into the test method to make the test cleaner. But xUnit does not provide extensibility to initialize and dispose objects created by AutoFixture. Especially if initialization and disposal are asynchronous operations. In this talk I will show you how to achieve this by transparently capturing IAsyncLifestyle objects created by AutoFixture into ThreadLocal context and assigning async operations to xUnit test class to let xUnit test runner execute initialization and disposal logic.

YOU MAY ALSO LIKE:

Thanks to our sponsors

Lightning Talk: Disposable xUnit Tests with AutoFixture

Andrii Litvinov

Andrii Litvinov is a Platform Engineer at Synergy Sports Technology, passionate about Domain-Driven Design, Event-Driven Reactive Systems, CQRS/ES and Actor Model.

SkillsCast

Please log in to watch this conference skillscast.

Https s3.amazonaws.com prod.tracker2 resource 41088130 skillsmatter conference skillscast o9nohu

AutoFixture allow to easily create test objects and inject them into the test method to make the test cleaner. But xUnit does not provide extensibility to initialize and dispose objects created by AutoFixture. Especially if initialization and disposal are asynchronous operations. In this talk I will show you how to achieve this by transparently capturing IAsyncLifestyle objects created by AutoFixture into ThreadLocal context and assigning async operations to xUnit test class to let xUnit test runner execute initialization and disposal logic.

YOU MAY ALSO LIKE:

Thanks to our sponsors

About the Speaker

Lightning Talk: Disposable xUnit Tests with AutoFixture

Andrii Litvinov

Andrii Litvinov is a Platform Engineer at Synergy Sports Technology, passionate about Domain-Driven Design, Event-Driven Reactive Systems, CQRS/ES and Actor Model.