コード例 #1
0
        [Fact] // GetAllData_CallsGetAllDataOnce
        public void Data_TryGetAllData()
        {
            var MockRequest    = new Mock <IApiRequestSend <Warehouse> >();
            var itemController = new WarehouseController(MockRequest.Object);

            itemController.GetAll();

            MockRequest.Verify(m => m.GetAllData(), Times.Once());
        }