Using AutoFixture and Bogus to keep tests expressive
AutoFixture composes the test context. Bogus makes generated data easier to describe.
Software architect working with .NET, AWS, Azure, APIs, and cloud infrastructure. I write about practical problems from real implementation work. You can read more about me in the About me section.
Explore the blog
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.
With your permission, this site uses Google Analytics cookies to understand which articles people read. Anonymous, cookie-free page statistics are collected either way. No advertising, no selling of data.
