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