Ejemplo n.º 1
0
        public PnPComponentTest()
        {
            ILogger CreateLogger()
            {
                var factory = new LoggerFactory();

                factory.AddProvider(new DebugLoggerProvider());
                return(factory.CreateLogger("test"));
            }

            ILogger debugLogger = CreateLogger();

            mockClient = new MockDeviceClient();
            nocomp     = new PnPComponent(mockClient, debugLogger);
            comp       = new PnPComponent(mockClient, "c1", debugLogger);
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     mockClient = null;
     pnpClient  = null;
 }
Ejemplo n.º 3
0
 public PnPClientTest()
 {
     mockClient = new MockDeviceClient();
     pnpClient  = PnPClient.CreateFromDeviceClient(mockClient);
 }