public async Task Setup() { #region Configuration classes var fixture = new ConfigurationFixture(); configurationBuilder = fixture.GenerateConfiguration(); _radarrClient = fixture.radarrClient; #endregion #region Database Con++text _mediaDbContext = fixture.GetDbContext(); if (!_mediaDbContext.Request.Any()) { _mediaDbContext.Request.Add(new Domain.UserRequest { Id = 1, MovieId = "577922", UserId = "bacbb67d-819e-4e7b-bb29-c81ff99b5d1d" }); await _mediaDbContext.SaveChangesAsync(); } #endregion #region Http Helper _httpHelper = new HttpHelper(fixture.ServicePath, fixture.ApiKeys, fixture.radarrClient, fixture.tmdbClient); #endregion _mediator = A.Fake <IMediator>(); }
public void Setup() { #region Configuration classes var fixture = new ConfigurationFixture(); configurationBuilder = fixture.GenerateConfiguration(); #endregion _httpHelper = new HttpHelper(fixture.ServicePath, fixture.ApiKeys, fixture.radarrClient, fixture.tmdbClient); _mediator = A.Fake <IMediator>(); _mediaDbContext = fixture.GetDbContext(); _servicePath = fixture.ServicePath; _apiKeys = fixture.ApiKeys; _radarrClient = fixture.radarrClient; }