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

                client.AddMember(1, "user");

                connection.Received().Put(Arg.Is <Uri>(u => u.ToString() == "teams/1/members/user"));
            }
            public void RequestsTheCorrectUrl()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new TeamsClient(connection);

                client.AddMember(1, "user");

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