예제 #1
0
        public void Autocomplete_CallsAutocompleteService(string owner, string repo, int number)
        {
            var mock = new Mock <IAutocompleteService>();

            ExtensionsService service = new ExtensionsService(mock.Object);

            // Act
            service.Autocomplete(owner, repo, number);

            // Assert
            mock.Verify(s => s.Run(owner, repo, number), Times.Once);
        }
        public ExtensionsController()
        {
            GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient();

            extensionsService = new ExtensionsService(graphClient);
        }