public void GetAppointments_Throws_If_Component_Not_Enabled() { Assert.Throws<NotSupportedException>(() => { var info = new APIInfo { BaseUrl = BaseUrl, Version = "alpha" }; var factory = new StudentsApiFactory(info, AccessToken); factory.GetAppointmentBookingsApi(); }); }
public void GetAppointments_Works() { Assert.DoesNotThrow(() => { var info = new APIInfo { BaseUrl = BaseUrl, SupportedComponents = new List<string> { "Appointments" }, Version = "alpha" }; var factory = new StudentsApiFactory(info, AccessToken); factory.GetAppointmentBookingsApi(); }); }