Example #1
0
        public async Task GetByHotelTest()
        {
            IReadOnlyCollection <GetOrderModel> orderDatas = CreateEmptyOrderDataCollection();

            SetupOrderServiceGetByHotelAsyncMock(HotelId, orderDatas);

            IActionResult actual = await orderApiController.GetByHotel(HotelId);

            var actualValue = (actual as JsonResult).Value;

            Assert.AreEqual(actualValue, actualValue);
        }