Пример #1
0
            public void CallsIntoClient()
            {
                var gitHubClient = Substitute.For <IGitHubClient>();
                var client       = new ObservableUserKeysClient(gitHubClient);

                client.GetAll("auser");

                gitHubClient.User.Keys.Received().GetAll("auser", Arg.Any <ApiOptions>());
            }
Пример #2
0
            public void CallsIntoClient()
            {
                var gitHubClient = Substitute.For <IGitHubClient>();
                var client       = new ObservableUserKeysClient(gitHubClient);

                client.GetAll();

                gitHubClient.User.Keys.Received().GetAll();
            }