You can install Foo using NuGet:
PM> Install-Package Foo
Foo creates values for your test class variables so that you can write tests faster.
The values are not random; they're arbitrary. Use Foo when you need a value and don't care what it is. This is particularly useful when you're writing interaction tests, for example using machine.specifications.
Foo was created by a group of developers who needed named value variables for use by their interaction test classes. It's most useful if you're using machine.specifications and Rhino Mocks, but you may find some of its offerings useful if you're using different testing frameworks.
Sometimes your test needs a value whose name is important and whose value is not. Foo is a good fit for this situation. Store an arbitrary value into this variable easily. The value is determined at runtime, so you'll know your test's passing status isn't dependent on the variable's value.
int clientNumberValue = Foo.Get<int>();
IEnumerable<int> clientNumbersValue = Foo.Get<IEnumerable<int>>();
If you already have an enumerable of values, and you need an arbitrary element from that enumerable, Foo can help.
var color = Foo.GetFrom(new List<string> { "red", "blue", "green" });
Another method on Foo, AssignArbitraryValues(), is particularly useful if you're writing machine.specification tests, as it will quickly and easily assign arbitrary values to every variable used for storing arbitrary values needed by your tests. If you keep all of those variables in a parent class, they can all be assigned in one call:
Foo.AssignArbitraryValues<TestsBase>();
If your tests use Fakes, and they're also defined in that parent class, you can instantiate all of them in one call using, for example, Rhino Mocks:
Foo.AssignFakes<TestsBase>(FakeMaker<MockRepository>.Make);