Exemple #1
0
        public void GivenAContractWithoutRequest_AndAttemptToComplete_ItThrowsException()
        {
            var mockProvider = new MockProviderService(port);

            mockProvider.Given("A Test");


            Assert.Throws <Exception>(() =>
                                      mockProvider.WillRespondWith(new ContractResponse()
            {
                StatusCode = HttpStatusCode.Accepted
            }));
        }