public EpisodeTrackerTests() { FakeHttpMessageHandler fakeHandler = new FakeHttpMessageHandler(); FakeHandlerSeeder.Seed(fakeHandler); this.Tracker = new Tracker( new HttpClient(fakeHandler), new InMemoryStorage() ); }
public void StartingWithoutConfigShouldReturnConfigurationException() { FakeHttpMessageHandler fakeHandler = new FakeHttpMessageHandler(); FakeHandlerSeeder.Seed(fakeHandler); Assert.Throws <Exceptions.ApiCredentialException>(() => new Tracker( new HttpClient(fakeHandler), new JsonStorage( Path.Combine( Path.Combine( Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Data"), "EpisodeTracker.json" ) ) ) ); }