dbfit / dbfit

DbFit is a database testing framework that supports easy test-driven development of your database code.
http://dbfit.github.io/dbfit
GNU General Public License v2.0
232 stars 90 forks source link

Custom Fixtures #641

Open krishabh85 opened 5 years ago

krishabh85 commented 5 years ago

I am facing trouble in creating my own custom fixture and using it. I have seen examples of the code and below is the code which i m trying to implement as a fixture but dbfit is throwing an exception that the fixture can't be found. Can anyone tell me the detailed explanation for creating our own custom fixture.

using fit;

namespace SampleLibrary

{

public class UserTest : ColumnFixture

{

    public string UserName { get; set; }

    public string Password { get; set; }

    public bool IsAuthenticated()

    {

        if (UserName == "Abhishek" && Password == "test")

        {

            return true;

        }

        else

        {

            return false;

        }

    }

}

}

MMatten commented 5 years ago

This project is java-based. The original v1 C# code was absorbed into the FitSharp project. You might look for better support via that project or via the Fitnesse Yahoo group.