Пример #1
0
        public static void StartServer(TestContext context)
        {
            ts = new MockService();
            ts.Port = 9999;
            ts.LogOutput = null;
            ts.OpenBrowserOnStart = false;
            ts.Start();

            wc = new WebClient();
        }
Пример #2
0
        private void CreateResolver()
        {
            mockService = new MockService();
            mockServices = new List<MockService>
            {
                mockService
            };

            mockResolver = new MockResolver();
            mockResolver.GetServiceDelegate = () => mockService;
            mockResolver.GetServicesDelegate = () => mockServices;
        }
        private void CreateResolver()
        {
            mockService = new MockService();
            mockServices = new List<MockService>
                           {
                               mockService
                           };

            mockResolver = new MockReflectionResolver();
            mockResolver.GetInstanceDelegate = () => mockService;
            mockResolver.GetAllInstancesDelegate = () => mockServices;
        }