Esempio n. 1
0
            public async Task DeletesCorrectURL()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new ProjectColumnsClient(connection);

                await client.Delete(1);

                connection.Connection.Received().Delete(
                    Arg.Is <Uri>(u => u.ToString() == "projects/columns/1"),
                    Arg.Any <object>(),
                    "application/vnd.github.inertia-preview+json");
            }