コード例 #1
0
 public void Setup()
 {
     BookingOrderMapperMock.Setup(x => x.Map(It.IsAny <Booking>())).Returns(new Order {
         StartTime = DateTime.Now.AddDays(-1)
     });
     AddBooking(new Booking());
 }
コード例 #2
0
 public void Setup()
 {
     BookingOrderMapperMock.Setup(x => x.Map(It.IsAny <Booking>())).Returns(ExistingOrder);
     AddBooking(new Booking());
 }