protected override void Initialize() { var store = Factory.ClientStore.TypeFactory(); _expected = TestData.ClientAllProperties(); AdminService.Save(_expected); _actual = store.FindClientByIdAsync(_expected.ClientId).Result; }
private async Task Setup() { var store = Factory.Resolve <IClientStore>(); await SaveAsync(TestData.ClientAllProperties()); _actual = await store.FindClientByIdAsync(_expected.ClientId); }
private async Task Setup() { var store = Factory.Resolve <ITokenHandleStore>(); await SaveAsync(TestData.ClientAllProperties()); var key = GetType().Name; await store.StoreAsync(key, TestData.ClientCredentialsToken()); _actual = await store.GetAsync(key); }
public ClientSerializerAllPropertiesNonDefault(PersistenceTestFixture data) : base(data) { _expected = TestData.ClientAllProperties(); _setup = Setup(); }
public ClientSerializerOnlyMandatoryPropertiesSet(PersistenceTestFixture data) : base(data) { _expected = TestData.ClientAllProperties(); _setup = Setup(); }