public DeltaTokenStore_Tests() { store = new MockOfflineStore(); sut = new DeltaTokenStore(store); testVAL = testDTO.ToUnixTimeMilliseconds(); json = $"{{\"id\":\"{testKEY}\",\"value\":{testVAL}}}"; }
public async Task InitializedOfflineStoreAsync_CallsInit_WhenStore() { var store = new MockOfflineStore(); var client = new DatasyncClient(Endpoint, new DatasyncClientOptions { OfflineStore = store }); await client.InitializeOfflineStoreAsync(); Assert.True(client.SyncContext.IsInitialized); }
public void Ctor_CreateTable_WhenArgsCorrect() { var store = new MockOfflineStore(); var options = new DatasyncClientOptions { OfflineStore = store }; var client = new DatasyncClient(Endpoint, options); var table = new OfflineTable("movies", client); Assert.Same(client, table.ServiceClient); Assert.Equal("movies", table.TableName); }
public BaseOperationTest() : base() { store = new MockOfflineStore(); table = GetMockClient(null, store).GetOfflineTable("movies"); authTable = GetMockClient(new MockAuthenticationProvider(ValidAuthenticationToken), store).GetOfflineTable("movies"); }
public OfflineTable_generic_Tests() : base() { store = new MockOfflineStore(); client = GetMockClient(null, store); }
public BaseOperationTest() : base() { store = new MockOfflineStore(); table = GetMockClient(null, store).GetOfflineTable <ClientMovie>("movies"); }
public OperationBatch_Tests() { client = GetMockClient(); store = new MockOfflineStore(); context = new SyncContext(client, store); }