Exemple #1
0
        public void SetUp()
        {
            try
            {
                Tester = new ServiceTester <CalculatorServiceHost>
                {
                    CommunicationKernel = new MicrodotInitializer(
                        "CalculatorServiceCommLayer",
                        new ConsoleLogLoggersModules(),
                        k =>
                    {
                        k.Rebind <ICacheRevoker>().ToConstant(_fakeRevokingManager);
                        k.Rebind <IRevokeListener>().ToConstant(_fakeRevokingManager);
                        k.Rebind <ICertificateLocator>().To <DummyCertificateLocator>().InSingletonScope();
                    }
                        ).Kernel
                };

                Service            = Tester.GetServiceProxy <ICalculatorService>();
                ServiceWithCaching = Tester.GetServiceProxyWithCaching <ICalculatorService>();
                ProxyProvider      = Tester.GetServiceProxyProvider("CalculatorService");
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
 public void SetUp()
 {
     try
     {
         _tester = new ServiceTester <CalculatorServiceHost>();
         _serviceProxyProvider = _tester.GetServiceProxyProvider("CalculatorService");
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }
 public void SetUp()
 {
     try
     {
         _tester = AssemblyInitialize.ResolutionRoot.GetServiceTester <CalculatorServiceHost>();
         _serviceProxyProvider = _tester.GetServiceProxyProvider("CalculatorService");
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }