private void SendToServer(List <Quote> quotes) { var request = new AddQuotesRequest { Quotes = quotes }; var result = new RequestRelay().Execute(request); // IVA: Error handling for returned request }
public void Execute_NoRequestHandlerExistsForRequest_ThrowsException() { // Arrange var relay = new RequestRelay(); // Act Assert.Throws <Exception>(() => relay.Execute(new TestRequestTest()), "No requesthandler found for request TestRequestTest"); // Assert }
public void Execute_CanGoFullMonty() { // Arrange var relay = new RequestRelay(); // Act var response = relay.Execute(new AddQuotesRequest()); // Assert Assert.That(response, Is.Not.Null); }
public void Execute_OneQuoteToSave_SavesWithNoException() { // Arrange var request = new AddQuotesRequest { Quotes = new List <Quote> { new Quote { LastTradePriceOnly = 33 } } }; // Act var result = new RequestRelay().Execute(request); // Assert }