How to use NSubstitute to mock a lazy class
     //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 throw an Exception. 

> The lazily-initialized type does not have a public, parameterless
> constructor

I am using C# 4.0 and NSubstitute 1.2.1
How to use NSubstitute to mock a lazy class
===

     //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 throw an Exception. 

> The lazily-initialized type does not have a public, parameterless
> constructor

I am using C# 4.0 and NSubstitute 1.2.1