예제 #1
0
 public void Delete_ShouldRemoveAllRegistrations()
 {
     _channel.Register(
         new StubBuilder().AllRequests.WithPath("dance")
         .WillReturnResponse()
         .WithStatusCode(HttpStatusCode.Conflict)
         .Build());
     _channel.List().Length.Should().Be(1);
     _channel.Reset();
     _channel.List().ShouldBeEquivalentTo(new StubRegistration[0]);
 }
예제 #2
0
        public void View_ShouldReturnNull_WhenNoRegistrations()
        {
            var client = new StubChannel(Settings.Url);

            client.List().ShouldBeEquivalentTo(new StubRegistration[0]);
        }