public void Valid_item_and_valid_IfNoneMatch_delete() { TestContainer.Create(); Write(TestItem, Guid.Empty); TestItem.Delete(StreamingCondition.IfNoneMatch("random")); TestItem.GetInfo().ShouldFail(); }
public void Valid_item_and_valid_IfNoneMatch_exact_return() { TestContainer.Create(); var g = Guid.NewGuid(); Write(TestItem, g); ShouldHaveGuid(TestItem, g, StreamingCondition.IfNoneMatch("none")); }
public void Valid_item_and_valid_IfNoneMatch_returns_info() { TestContainer.Create(); Write(TestItem, Guid.Empty); TestItem.GetInfo(StreamingCondition.IfNoneMatch("never")).ShouldPass(); }
public void Conditional_append_works() { TestContainer.Create(); Write(TestItem, Guid.Empty, StreamingCondition.IfNoneMatch("tag")); }
public void Missing_item_and_valid_IfNoneMatch_succeed() { TestContainer.Create(); Write(TestItem, Guid.Empty, StreamingCondition.IfNoneMatch("none")); ShouldHaveGuid(TestItem, Guid.Empty); }
public void Missing_item_and_IfNoneMatch_throw_item_not_found() { TestContainer.Create(); ExpectItemNotFound(() => TryToRead(TestItem, StreamingCondition.IfNoneMatch("mismatch"))); }
public void Missing_container_and_IfNoneMatch_throw_condition_failed() { ExpectContainerNotFound(() => TryToRead(TestItem, StreamingCondition.IfNoneMatch("mismatch"))); }