Exemple #1
0
            public void RequestsTheCorrectUrl()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new TeamsClient(connection);

                client.Delete(1);

                connection.Received().Delete(Arg.Is <Uri>(u => u.ToString() == "teams/1"));
            }
Exemple #2
0
            public void RequestsTheCorrectUrl()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new TeamsClient(connection);

                client.Delete(1);

                connection.Received().Delete(
                    Arg.Is <Uri>(u => u.ToString() == "teams/1"),
                    Args.Object,
                    "application/vnd.github.hellcat-preview+json");
            }
            public void RequestsTheCorrectUrl()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new TeamsClient(connection);
                client.Delete(1);

                connection.Received().Delete(Arg.Is<Uri>(u => u.ToString() == "teams/1"));
            }