示例#1
0
        public void EquipmentManager_GetEquipmentSchedule()
        {
            EquipmentAccessor.Arrange(x => x.GetEquipmentSchedule(Arg.IsAny <long>()))
            .Returns(Task.FromResult(Enumerable.Empty <EquipmentSchedule>()))
            .OccursOnce();

            var res = manager.GetEquipmentSchedule(5).Result;

            Assert.IsNotNull(res);
            EquipmentAccessor.Assert();
        }