public async void Gets_all_prescriptions()
        {
            var client   = _factory.CreateClient();
            var response = await client.GetAsync("/hospital/docsearch/prescription");

            var responseString = await response.Content.ReadAsStringAsync();

            Assert.Contains("Brufen", responseString);
        }
예제 #2
0
        public async void Finds_rooms_by_ids()
        {
            var        client = _factory.CreateClient();
            List <int> ids    = new List <int>();

            ids.Add(1);
            var content  = JsonContent.Create(ids);
            var response = await client.PostAsync("hospital/room", content);

            var responseString = await response.Content.ReadAsStringAsync();

            Assert.Contains("\"id\":1", responseString);
        }