Ejemplo n.º 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]);
 }
Ejemplo n.º 2
0
        public void View_ShouldReturnNull_WhenNoRegistrations()
        {
            var client = new StubChannel(Settings.Url);

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