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

                client.DeleteArchive("fake", 69);
                github.Migration.Migrations.Received(1).DeleteArchive("fake", 69);
            }
コード例 #2
0
            public void CallsIntoClient()
            {
                var github = Substitute.For<IGitHubClient>();
                var client = new ObservableMigrationsClient(github);
                var migrationRequest = new StartMigrationRequest(
                    new List<string> { "fake/repo" },
                    true,
                    false);

                client.Start("fake", migrationRequest);
                github.Migration.Migrations.Received(1).Start(
                    "fake",
                    Arg.Is<StartMigrationRequest>(m => m.Equals(migrationRequest)));
            }
コード例 #3
0
            public void CallsIntoClient()
            {
                var github = Substitute.For<IGitHubClient>();
                var client = new ObservableMigrationsClient(github);

                client.UnlockRepository("fake", 69, "repo");
                github.Migration.Migrations.Received(1).UnlockRepository("fake", 69, "repo");
            }