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 SetUp() { Settings.SetServerUrl("http://localhost/EasyStub"); _channel = new StubChannel(Settings.Url); _channel.Reset(); }