public void ConvertAPIToSDK()
        {
            apiVisibility1 = "ACCOUNT";
            sdkVisibility1 = new VisibilityConverter(apiVisibility1).ToSDKVisibility();
            Assert.AreEqual(sdkVisibility1.getApiValue(), apiVisibility1);

            apiVisibility2 = "SENDER";
            sdkVisibility2 = new VisibilityConverter(apiVisibility2).ToSDKVisibility();
            Assert.AreEqual(sdkVisibility2.getApiValue(), apiVisibility2);

            apiVisibility3 = "NEWLY_ADDED_TYPE";
            sdkVisibility3 = new VisibilityConverter(apiVisibility3).ToSDKVisibility();
            Assert.AreEqual(sdkVisibility3.getApiValue(), apiVisibility3);
        }
Example #2
0
 static Visibility()
 {
     allVisibilities.Add(ACCOUNT.getApiValue(), Visibility.ACCOUNT);
     allVisibilities.Add(SENDER.getApiValue(), Visibility.SENDER);
 }