public void TestGetTrustRelationTypeGroupValid()
        {
            var code = "test";
            IRestResponse <TrustRelationTypeGroup> mockedResponse = new RestResponse <TrustRelationTypeGroup>()
            {
                StatusCode = System.Net.HttpStatusCode.OK
            };
            var group = new TrustRelationTypeGroup()
            {
                Code          = code,
                ApplicationID = Guid.NewGuid()
            };

            mockedResponse.Data = group;
            mockedClient.Setup <IRestResponse>(c => c.Execute <TrustRelationTypeGroup>(It.IsAny <JSONRestRequest>())).Returns(mockedResponse);
            var result = provider.GetTrustRelationGroup(code);

            Assert.AreEqual(group, result);
            mockedClient.Verify(c => c.Execute <TrustRelationTypeGroup>(It.IsAny <JSONRestRequest>()), Times.Once);
        }
        public void TestSaveTrustRelationTypeGroupValid()
        {
            var code  = "code";
            var group = new TrustRelationTypeGroup()
            {
                Code              = code,
                ApplicationID     = Guid.NewGuid(),
                OfferedTrustTypes = new List <Guid>()
                {
                    Guid.NewGuid()
                }
            };
            IRestResponse <object> mockedResponse = new RestResponse <object>()
            {
                StatusCode = System.Net.HttpStatusCode.Created
            };

            mockedClient.Setup <IRestResponse>(c => c.Execute <object>(It.IsAny <JSONRestRequest>())).Returns(mockedResponse);
            provider.SaveTrustRelationTypeGroup(group);
            mockedClient.Verify(c => c.Execute <object>(It.IsAny <JSONRestRequest>()), Times.Once);
        }