Пример #1
0
                public async Task ExecuteQuerySegmentedOnTableReturnsZeroResults_ReturnsNull()
                {
                    var store = Store();

                    store.EntityStore.Table.ExecuteQuerySegmentedAsync_Output =
                        FakeCloudTable.CreateSegment(results: 0);

                    var result = await store.Retrieve(email : "*****@*****.**");

                    Assert.Null(result);
                }
Пример #2
0
                public async Task ExecuteQuerySegmentedOnTableReturnsTwoResults_Throws()
                {
                    var store = Store();

                    store.EntityStore.Table.ExecuteQuerySegmentedAsync_Output =
                        FakeCloudTable.CreateSegment(results: 2);

                    await Assert.ThrowsAsync <InvalidOperationException>(async() =>
                    {
                        await store.Retrieve(email: "*****@*****.**");
                    });
                }