public void init() { _config = Substitute.For <IConfiguration>(); _clientFactory = Substitute.For <IHttpClientFactory>(); _helper = Substitute.For <IURLHelper>(); dbContext = new UrlShortnerDbContext(TestDbContext.GetOptions()); }