Beispiel #1
0
    public App()
    {
        var broadcastFactory      = new ChainerFactory(16384);
        var networkServiceFactory = new NetworkServiceFactory();

        _watcher          = networkServiceFactory.CreateWatcher();
        _broadcastService = new BroadcastService(broadcastFactory, _watcher, networkServiceFactory.CreateUtility());
        InitializeBroadcastService(networkServiceFactory, _broadcastService);
        var frameworkDialogFactory = new DefaultFrameworkDialogFactory();
        var dialogService          = new DefaultDialogService(frameworkDialogFactory);
        var fileService            = new DefaultFileService(new [] { ".lpsnp" });

        _paintDataContext = new PaintViewModel(_broadcastService, dialogService, fileService, networkServiceFactory);
    }
Beispiel #2
0
 public void GetNetworkWatcher()
 {
     Assert.Equal(factory.CreateWatcher().GetType(), typeof(NetworkWatcher));
 }