https://github.com/rsm-hcd/AndcultureCode.CSharp.FactoryGirl
Port of FactoryGirl for .NET Core C#
https://github.com/rsm-hcd/AndcultureCode.CSharp.FactoryGirl
csharp dotnet-core dotnet-standard factory-girl hacktoberfest testing
Last synced: about 1 year ago
JSON representation
Port of FactoryGirl for .NET Core C#
- Host: GitHub
- URL: https://github.com/rsm-hcd/AndcultureCode.CSharp.FactoryGirl
- Owner: rsm-hcd
- License: apache-2.0
- Created: 2019-08-22T13:52:34.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T15:59:15.000Z (about 4 years ago)
- Last Synced: 2025-06-20T13:52:15.582Z (about 1 year ago)
- Topics: csharp, dotnet-core, dotnet-standard, factory-girl, hacktoberfest, testing
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 9
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# AndcultureCode.CSharp.FactoryGirl

[](https://codecov.io/gh/AndcultureCode/AndcultureCode.CSharp.FactoryGirl)
Port of FactoryGirl for .NET Core C#
## Getting Started
This package is installed via NuGet
```
dotnet add [] package AndcultureCode.CSharp.FactoryGirl
```
After installation, simply import the extensions namespace to gain access
to all of the available extension methods
```csharp
using System;
using System.Collection.Generic;
using AndcultureCode.CSharp.FactoryGirl;
public class Program
{
public static int Main(string[] args)
{
new List().IsEmpty(); // returns true
}
}
```
## Development Setup
* Install Dotnet Core 2.x
* Install the `and-cli` tooling found at [AndcultureCode.Cli](https://github.com/AndcultureCode/AndcultureCode.Cli)
Below are a few basics to get you started, but there are many more commands and options for managing this and other projects found in the `and-cli`.
### Building project
* Run the build command
```
and-cli dotnet --build
```
### Running tests along with code coverage
* Run the test command
```
and-cli dotnet-test
```
* Open the `coverage/index.htm` file in your browser
### Publishing a new version
* Run the publish command with the next version number ([See semver package versioning](https://docs.microsoft.com/en-us/nuget/concepts/package-versioning))
```
and-cli nuget --publish
```
Contributing
======
Information on contributing to this repo is in the [Contributing Guide](CONTRIBUTING.md)