public async Task Test_Create_Add_RedirectUris_ByClientIdAsync() { var adminStore = new IdentityServer3AdminStore(); var insert = await CassandraTestHelper.InsertTestData_Clients(1); var result = await adminStore.FindClientByIdAsync(insert[0].ClientId); Assert.IsNotNull(result); var original = result.RedirectUris; Assert.AreEqual(insert[0].ClientName, result.ClientName); List <string> newData = new List <string>() { Guid.NewGuid().ToString() }; await adminStore.AddRedirectUrisToClientAsync(insert[0].ClientId, newData); var finalList = new List <string>(); finalList.AddRange(original); finalList.AddRange(newData); result = await adminStore.FindClientByIdAsync(insert[0].ClientId); Assert.IsNotNull(result); Assert.AreEqual(result.RedirectUris.Count(), finalList.Count); var ff = result.RedirectUris.Except(finalList); Assert.IsFalse(ff.Any()); }