示例#1
0
            public void CallsIntoClient()
            {
                var github = Substitute.For <IGitHubClient>();
                var client = new ObservableMigrationsClient(github);

                client.GetAll("fake");
                github.Received().Migration.Migrations.GetAll("fake", Args.ApiOptions);
            }
示例#2
0
            public void CallsIntoClientApiOptions()
            {
                var github  = Substitute.For <IGitHubClient>();
                var client  = new ObservableMigrationsClient(github);
                var options = new ApiOptions
                {
                    PageCount = 1,
                    PageSize  = 1
                };

                client.GetAll("fake", options);

                github.Received().Migration.Migrations.GetAll("fake", options);
            }