Ejemplo n.º 1
0
 public void Init()
 {
     logger = new Mock <ILogger <AssetRepository> >();
     propertySetterLogger = new Mock <ILogger <AssetPropertySetter> >();
     imDbContext          = new Mock <IMDbContext>();
     assetPropertySetter  = new Mock <AssetPropertySetter>(propertySetterLogger.Object).Object;
     assetRepository      = new AssetRepository(logger.Object, imDbContext.Object, assetPropertySetter);
 }
Ejemplo n.º 2
0
 public AssetRepository(ILogger <AssetRepository> logger, IMDbContext imDbContext, IAssetPropertySetter assetPropertySetter)
 {
     this.logger              = logger;
     this.imDbContext         = imDbContext;
     this.assetPropertySetter = assetPropertySetter;
 }