public void SetUp()
        {
            _resultingTag = null;

            page = MockRepository.GenerateMock<IFubuPage>();
            endpoints = MockRepository.GenerateMock<IEndpointService>();

            page.Expect(x => x.Get<IEndpointService>()).Return(endpoints);

            theFinder = s => s.EndpointForNew<SomeEntity>();

            theEndpoint = new Endpoint(){
                IsAuthorized = false,
                Url = "some url"
            };

            endpoints.Expect(x => x.EndpointForNew<SomeEntity>()).Return(theEndpoint);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            _resultingTag = null;

            page      = MockRepository.GenerateMock <IFubuPage>();
            endpoints = MockRepository.GenerateMock <IEndpointService>();

            page.Expect(x => x.Get <IEndpointService>()).Return(endpoints);

            theFinder = s => s.EndpointForNew <SomeEntity>();

            theEndpoint = new Endpoint()
            {
                IsAuthorized = false,
                Url          = "some url"
            };

            endpoints.Expect(x => x.EndpointForNew <SomeEntity>()).Return(theEndpoint);
        }