Exemplo n.º 1
0
        private void Given_valid_multicurrency_balances()
        {
            _mockSkillRequest  = new Mock <SkillRequest>();
            _mockLambdaContext = new Mock <ILambdaContext>();

            _mockSkillRequest.Object.Session = new Session {
                User = new User()
            };

            _fakeHttpClient = new FakeHttpClient(HttpStatusCode.OK, true);

            _xeroService = new XeroService(_fakeHttpClient);
        }
Exemplo n.º 2
0
        private void Given_a_valid_connection()
        {
            _mockSkillRequest  = new Mock <SkillRequest>();
            _mockLambdaContext = new Mock <ILambdaContext>();

            _mockSkillRequest.Object.Session = new Session {
                User = new User()
            };

            _fakeHttpClient = new FakeHttpClient(HttpStatusCode.OK, false);

            _xeroService = new XeroService(_fakeHttpClient);
        }