Exemple #1
0
        public void ProcessReuqest_ThrowsExceptionWhenEmptyServiceCodeProvided()
        {
            var controller = new SoapController(loggerMock.Object, anonymousServiceClientMock.Object, authenticatedServiceClientMock.Object, cacheMock.Object);

            CancellationTokenSource cts = new CancellationTokenSource(1000);

            Assert.ThrowsAsync <ArgumentNullException>(async() => await controller.ProcessRequest(null, cts.Token));
        }