public async Task WhenRetrievingObjectGuidId_HasId() { var t = new ValidTestObjectGuidId() { Description = "GuidIdObject", Id = Guid.NewGuid() }; var helper = new AzureFileStorage <ValidTestObjectGuidId>(GetMetaContainer(t.Id.ToString()).Object, id => new byte[0]); await helper.TrySaveItemAsync(t); var res = await helper.GetMetaItemAsync(t.Id.ToString()); Assert.AreEqual(t.Id, res.Id); }
public async Task WhenRetrievingObjectGuidId_HasId() { var t = new ValidTestObjectGuidId() {Description = "GuidIdObject", Id = Guid.NewGuid()}; var helper = new AzureFileStorage<ValidTestObjectGuidId>(GetMetaContainer(t.Id.ToString()).Object, id => new byte[0]); await helper.TrySaveItemAsync(t); var res = await helper.GetMetaItemAsync(t.Id.ToString()); Assert.AreEqual(t.Id, res.Id); }