コード例 #1
0
 public void Valid_item_and_valid_IfNoneMatch_delete()
 {
     TestContainer.Create();
     Write(TestItem, Guid.Empty);
     TestItem.Delete(StreamingCondition.IfNoneMatch("random"));
     TestItem.GetInfo().ShouldFail();
 }
コード例 #2
0
        public void Valid_item_and_valid_IfNoneMatch_exact_return()
        {
            TestContainer.Create();
            var g = Guid.NewGuid();

            Write(TestItem, g);
            ShouldHaveGuid(TestItem, g, StreamingCondition.IfNoneMatch("none"));
        }
コード例 #3
0
 public void Valid_item_and_valid_IfNoneMatch_returns_info()
 {
     TestContainer.Create();
     Write(TestItem, Guid.Empty);
     TestItem.GetInfo(StreamingCondition.IfNoneMatch("never")).ShouldPass();
 }
コード例 #4
0
 public void Conditional_append_works()
 {
     TestContainer.Create();
     Write(TestItem, Guid.Empty, StreamingCondition.IfNoneMatch("tag"));
 }
コード例 #5
0
 public void Missing_item_and_valid_IfNoneMatch_succeed()
 {
     TestContainer.Create();
     Write(TestItem, Guid.Empty, StreamingCondition.IfNoneMatch("none"));
     ShouldHaveGuid(TestItem, Guid.Empty);
 }
コード例 #6
0
 public void Missing_item_and_IfNoneMatch_throw_item_not_found()
 {
     TestContainer.Create();
     ExpectItemNotFound(() => TryToRead(TestItem, StreamingCondition.IfNoneMatch("mismatch")));
 }
コード例 #7
0
 public void Missing_container_and_IfNoneMatch_throw_condition_failed()
 {
     ExpectContainerNotFound(() => TryToRead(TestItem, StreamingCondition.IfNoneMatch("mismatch")));
 }