# Trappings: An easier way to do functional testing

DevFeed: [Trappings: An easier way to do functional testing](<https://devfeed.tech/articles/trappings-an-easier-way-to-do-functional-testing-33397.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2012/06/10/Trappings>)

Published: 2012-06-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [Testing](<https://devfeed.tech/topics/testing.md>), [Database](<https://devfeed.tech/topics/database.md>), [Utility Software](<https://devfeed.tech/topics/utility.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [.NET](<https://devfeed.tech/topics/net.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [automated](<https://devfeed.tech/tags/automated.md>), [database](<https://devfeed.tech/tags/database.md>), [functional](<https://devfeed.tech/tags/functional.md>), [functional-testing](<https://devfeed.tech/tags/functional-testing.md>), [integration](<https://devfeed.tech/tags/integration.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>)

## AI overview

This article introduces Trappings, a testing utility for .NET projects that creates test data for functional and integration tests and tears it down afterward. It is intended to keep tests independent and can use MongoDB ID generation to build related test objects.

## Source excerpt

I've spent the last couple weeks piecing together a testing utility to fill a need. The problem is that we need to run functional and integration tests that hit the database, but it's actually quite difficult. There's a few techniques that are traditionally used for setting up test data for automated tests.