public GuidDataServiceTests() { var _testHostBuilder = GuidDataCRUD.Web.Program.CreateWebHostBuilder(new string[] { }); _loggerProvMock = Substitute.For <ILogger <GuidDataService> >(); _loggerRepoMock = Substitute.For <ILogger <SqlGuidDataRepository> >(); _repoMock = Substitute.For <IGuidDataRepository>(); _appSettings = Options.Create(new AppSettings() { DefaultExpireDays = 30 }); _provider = new GuidDataService(_repoMock, _appSettings); }
public GuidDataController(IGuidDataService provider, ILogger <GuidDataController> logger) { _provider = provider; _logger = logger; }