コード例 #1
0
 public void Setup()
 {
     _mockReferenceGenerator = new Mock<IReferenceGenerator>();
     _mockRepository = new Mock<IEventRepository>();
     _eventService = new EventService(_mockRepository.Object, _mockReferenceGenerator.Object);
 }
コード例 #2
0
 public void EventService_NullRepository_ThrowsException()
 {
     //act
     var sut = new EventService(null, _mockReferenceGenerator.Object);
 }