public void ConvertNullAPIToAPI()
        {
            apiAccountProviders = null;
            converter           = new AccountProvidersConverter(apiAccountProviders);

            Assert.IsNull(converter.ToAPIAccountProviders());
        }
        public void ConvertNullSDKToAPI()
        {
            sdkAccountProviders = null;
            converter           = new AccountProvidersConverter(sdkAccountProviders);

            Assert.IsNull(converter.ToAPIAccountProviders());
        }
        public void ConvertSDKToSDK()
        {
            sdkAccountProviders = CreateTypicalSDKAccountProviders();
            converter           = new AccountProvidersConverter(sdkAccountProviders);
            AccountProviders accountProviders = converter.ToSDKAccountProviders();

            Assert.IsNotNull(accountProviders);
            Assert.AreEqual(sdkAccountProviders, accountProviders);
        }
        public void ConvertAPIToAPI()
        {
            apiAccountProviders = CreateTypicalAPIAccountProviders();
            converter           = new AccountProvidersConverter(apiAccountProviders);

            OneSpanSign.API.AccountProviders accountProviders = converter.ToAPIAccountProviders();

            Assert.IsNotNull(accountProviders);
            Assert.AreEqual(apiAccountProviders, accountProviders);
        }
        public void ConvertAPIToSDK()
        {
            apiAccountProviders = CreateTypicalAPIAccountProviders();
            converter           = new AccountProvidersConverter(apiAccountProviders);
            AccountProviders accountProviders = converter.ToSDKAccountProviders();

            Assert.IsNotNull(accountProviders);
            Assert.AreEqual(1, accountProviders.Documents.Count);
            Assert.AreEqual(ACC_PROV_DOC_NAME, accountProviders.Documents[0].Name);
            Assert.AreEqual(1, accountProviders.Users.Count);
            Assert.AreEqual(ACC_PROV_USR_NAME, accountProviders.Users[0].Name);
        }
        public void ConvertSDKToAPI()
        {
            sdkAccountProviders = CreateTypicalSDKAccountProviders();
            converter           = new AccountProvidersConverter(sdkAccountProviders);

            OneSpanSign.API.AccountProviders accountProviders = converter.ToAPIAccountProviders();

            Assert.IsNotNull(accountProviders);
            Assert.AreEqual(1, accountProviders.Documents.Count);
            Assert.AreEqual(ACC_PROV_DOC_NAME, accountProviders.Documents[0].Name);
            Assert.AreEqual(1, accountProviders.Users.Count);
            Assert.AreEqual(ACC_PROV_USR_NAME, accountProviders.Users[0].Name);
        }