Exemple #1
0
            public ServiceLocatorStubBuilder()
            {
                Logger        = Substitute.For <ILogger>();
                LoggerFactory = Substitute.For <ILoggerFactory>();

                LoggerFactory.CreateLogger(Arg.Any <Type>()).Returns(Logger);

                WindowsFactory = Substitute.For <IWindowsFactory>();
                var window = Substitute.For <IModalWindow>();

                WindowsFactory.CreateModalWindow().Returns(window);

                MessageBox          = Substitute.For <IMessageBox>();
                ApplicationServices = GenerateApplicationServicesStub();
            }