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]); }
public void View_ShouldReturnNull_WhenNoRegistrations() { var client = new StubChannel(Settings.Url); client.List().ShouldBeEquivalentTo(new StubRegistration[0]); }