Using AutoFixture and Bogus to keep tests expressive
AutoFixture composes the test context. Bogus makes generated data easier to describe.
AutoFixture composes the test context. Bogus makes generated data easier to describe.
A unit test should show what makes its scenario special. AutoFixture can provide a valid context by default so the Arrange phase only needs to describe the difference.
Tailoring AutoFixture’s customizations to the need of each test can cause a lot of code to be repeated. Let’s avoid that by using generic attributes.