following constructor parameters did not have matching fixture data : DbContextOptions'1options

508 views Asked by At
   public class StudentService
    {   


}

I have a student class where I am accessing MsDbContext to do entity framework related work.In the above code, options are coming from abstractDbBasedService.

AbstractDbBasedService :

public class AbstractDbBasedService

}

Now, I have a test class where I am accessing all the above services.

StudentTestClass :

    public class StudentServicesTests : AbstractDbBasedService
    {

}        
       [Fact]
        public void Assert_CreatedStudent_WhenStudentParemeterInvalid()
        {

        }

}

when I am trying to the run the tests, It is giving me the error - The following constructor parameter did not have matching fixture data:DbContextOptions'1 options. Please help me on this.

0

There are 0 answers