Ejemplo n.º 1
0
        public void AuthTestShouldCallCorrectEndpoint()
        {
            var requestHandlerMock = ExecRequestMock<AuthTestResponse>("/auth.test");

            var subject = new AuthApi(requestHandlerMock.Object);
            var result = subject.Test();

            requestHandlerMock.Verify();
            Assert.NotNull(result);
        }
Ejemplo n.º 2
0
        public void AuthTestShouldCallCorrectEndpoint()
        {
            var requestHandlerMock = ExecRequestMock <AuthTestResponse>("/auth.test");

            var subject = new AuthApi(requestHandlerMock.Object);
            var result  = subject.Test();

            requestHandlerMock.Verify();
            Assert.NotNull(result);
        }