Code refactoring + tests
This commit is contained in:
@@ -68,7 +68,8 @@ public static class TestUtils
|
||||
var optionsBuilder = new DbContextOptionsBuilder<SqlServerContext>();
|
||||
optionsBuilder.UseSqlServer("test");
|
||||
SqlServerContext sqlServerContext = new SqlServerContext(optionsBuilder.Options);
|
||||
return new JwtService(configuration, sqlServerContext);
|
||||
var userServiceMock = new Mock<IUserService>();
|
||||
return new JwtService(configuration, sqlServerContext, userServiceMock.Object);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user