Skip to content

rsm-hcd/AndcultureCode.CSharp.FactoryGirl

Repository files navigation

AndcultureCode.CSharp.FactoryGirl

build status codecov

Port of FactoryGirl for .NET Core C#

Getting Started

This package is installed via NuGet

dotnet add [<PROJECT>] package AndcultureCode.CSharp.FactoryGirl

After installation, simply import the extensions namespace to gain access to all of the available extension methods

using System;
using System.Collection.Generic;
using AndcultureCode.CSharp.FactoryGirl;

public class Program
{
    public static int Main(string[] args)
    {
        new List<string>().IsEmpty(); // returns true
    }
}

Development Setup

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

Contributing

Information on contributing to this repo is in the Contributing Guide