Beispiel #1
0
        public void ShouldThrowForInvalidDays()
        {
            var sgx = new SgxClient();

            void TestNoRecord(Func <Task> test) => test.Should().Throw <HttpRequestException>().WithMessage("No Record Found");

            TestNoRecord(() => sgx.GetDay(0));
            TestNoRecord(() => sgx.GetDay(9999));
        }
Beispiel #2
0
        public async Task ShouldGetDay()
        {
            var sgx      = new SgxClient();
            var response = await sgx.GetDay(1);

            response.Should().Contain("2013-03-22;800 SUPER HOLDINGS LIMITED");
        }