//Assert
Lazy<INotificationService> notificationService = Substitute.For<Lazy<INotificationService>>();
Service target = new Service(repository, notificationService);
//Act
target.SendNotify("Message");
//Arrange
notificationService.Received().Value.sendNotification(null, null, null, null);
The above code throws an exception.
The lazily-initialized type does not have a public, parameterless constructor
I am using C# 4.0 and NSubstitute 1.2.1