Beispiel #1
0
        public async Task CreateReservation()
        {
            using (var testApi = new TestApi())
            {
                await testApi.Start();

                var testConfig        = new TestConfig();
                var reservationClient = new ReservationsClient(testConfig.BaseUri);
                var createReservation = new CreateReservationRequest
                {
                    SessionId = "sessionId123",
                    MemberId  = "memberId123",
                };
                await reservationClient.Create(createReservation);

                await testApi.Stop();
            }
        }
Beispiel #2
0
 protected TestBase()
 {
     _api = new TestApi();
 }