public void Setup() { Factory = HydraClientFactory.Configure().WithDefaults(); Processor = new Mock <IHypermediaProcessor>(MockBehavior.Strict); Processor.Setup(_ => _.Supports(It.IsAny <IResponse>())).Returns(Level.FullSupport); var headers = new Mock <IHeaders>(MockBehavior.Strict); headers.SetupGet(_ => _[It.IsAny <string>()]).Returns(Array.Empty <string>()); Response = new Mock <IResponse>(MockBehavior.Strict); Response.SetupGet(_ => _.Headers).Returns(headers.Object); }
public async Task Setup() { Client = ConfigureClient(HydraClientFactory.Configure().WithDefaults()).AndCreate(); ScenarioSetup(); await TheTest(); }