Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JamesKovacs/FactoryGirl.NET
A .NET implementation of Thoughtbot's factory_girl for Ruby
https://github.com/JamesKovacs/FactoryGirl.NET
Last synced: 14 days ago
JSON representation
A .NET implementation of Thoughtbot's factory_girl for Ruby
- Host: GitHub
- URL: https://github.com/JamesKovacs/FactoryGirl.NET
- Owner: JamesKovacs
- License: mit
- Created: 2012-03-21T02:15:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-11T18:01:24.000Z (over 8 years ago)
- Last Synced: 2024-10-06T22:47:35.003Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 1.26 MB
- Stars: 55
- Watchers: 2
- Forks: 20
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
FactoryGirl.NET
===============
Minimal implementation of Ruby's [factory\_girl](http://github.com/thoughtbot/factory_girl) in .NET.
If you are familiar with factory\_girl in Ruby, we only support defining factories and building objects
using those factories. We do not support create (e.g. saving to the database), attributes\_for, or
build\_stubbed yet.To define a factory:
FactoryGirl.Define(() => new User {
FirstName = "John",
LastName = "Doe",
Admin = false
});To use a factory:
var user = FactoryGirl.Build();
To customize the object being built:
var admin = FactoryGirl.Build(x => x.Admin = true);
Copyright © 2012 [James Kovacs](http://jameskovacs.com)