Ejemplo n.º 1
0
        public Mock <IServiceProvider> GetServiceProvider(IGarmentAmendLetterOfCreditRepository repository)
        {
            var spMock = new Mock <IServiceProvider>();

            spMock.Setup(s => s.GetService(typeof(IGarmentAmendLetterOfCreditRepository)))
            .Returns(repository);

            return(spMock);
        }
 public GarmentAmendLetterOfCreditService(IServiceProvider serviceProvider)
 {
     _repository = serviceProvider.GetService <IGarmentAmendLetterOfCreditRepository>();
 }