public CarSteps(AppSettings appSettings, RestResponseInfo lastResponse) { _lastResponse = lastResponse; _actor = new Actor().WhoCan( UseMySqlDatabase.With(appSettings.MySqlConnectionString), CallRestApi.Using(new RestClient(appSettings.RestApiUrl))); }
public void InitializeScreenplay() { Actor = new Actor(name: "Andy", logger: new ConsoleLogger()); Actor.Can(CallRestApi.Using(new RestClient("https://dog.ceo/"))); }