public void T022Response200Administrator() { var businessRole = DefaultConfig.BusinessRole("administrator"); var response = api.LinkBusinessMember( DefaultConfig.FirstUser.UserHandle, DefaultConfig.FirstUser.PrivateKey, DefaultConfig.BusinessUser.UserHandle, DefaultConfig.BusinessUser.PrivateKey, businessRole, "test details" ); var parsedResponse = (LinkOperationResponse)response.Data; Assert.AreEqual(200, response.StatusCode); Assert.AreEqual("test details", parsedResponse.Details); Assert.AreEqual(businessRole.Name, parsedResponse.Role); Assert.IsNotNull(parsedResponse.Message); businessRole = DefaultConfig.BusinessRole("controlling_officer"); response = api.LinkBusinessMember( DefaultConfig.FirstUser.UserHandle, DefaultConfig.FirstUser.PrivateKey, DefaultConfig.BusinessUser.UserHandle, DefaultConfig.BusinessUser.PrivateKey, businessRole, "test details" ); parsedResponse = (LinkOperationResponse)response.Data; Assert.AreEqual(200, response.StatusCode); Assert.AreEqual("test details", parsedResponse.Details); Assert.AreEqual(businessRole.Name, parsedResponse.Role); Assert.IsNotNull(parsedResponse.Message); }
public void T022Response200Administrator() { var businessRole = DefaultConfig.BusinessRole("administrator"); var response = api.UnlinkBusinessMember( DefaultConfig.SecondUser.UserHandle, DefaultConfig.SecondUser.PrivateKey, DefaultConfig.BusinessUser.UserHandle, DefaultConfig.BusinessUser.PrivateKey, businessRole ); var parsedResponse = (LinkOperationResponse)response.Data; Assert.AreEqual(200, response.StatusCode); Assert.AreEqual(businessRole.Name, parsedResponse.Role); Assert.IsNotNull(parsedResponse.Message); }
public void T022Response200BeneficialOwner() { var businessRole = DefaultConfig.BusinessRole("beneficial_owner"); var response = api.LinkBusinessMember( DefaultConfig.FirstUser.UserHandle, DefaultConfig.FirstUser.PrivateKey, DefaultConfig.BusinessUser.UserHandle, DefaultConfig.BusinessUser.PrivateKey, businessRole, "test details", DefaultConfig.SecondUser.UserHandle, (float)0.33 ); var parsedResponse = (LinkOperationResponse)response.Data; Assert.AreEqual(200, response.StatusCode); Assert.AreEqual("test details", parsedResponse.Details); Assert.AreEqual(businessRole.Name, parsedResponse.Role); Assert.IsNotNull(parsedResponse.Message); }