public void SetUp() { this.httpWebRequest = (HttpWebRequest)WebRequest.Create(this.baseUrl); this.requestMock = MockRepository.GenerateStub <IRequestFactory>(); this.connector = ConnectorFactory.Create(this.requestMock, this.merchantId, this.secret, this.userAgent, this.baseUrl); this.order = new Klarna.Rest.OrderManagement.Order(this.connector, this.orderId); }
public void Order_Constructor_NoOrderId() { // Arrange // Act this.order = new Klarna.Rest.OrderManagement.Order(this.connectorMock, string.Empty); // Assert Assert.AreEqual(this.order.Location, null); }
public void Order_Constructor_OrderId() { // Arrange // Act this.order = new Klarna.Rest.OrderManagement.Order(this.connectorMock, this.orderUrl); // Assert Assert.AreEqual(this.order.Location, this.order.Path + "/" + this.orderUrl); }
public void Order_Path_Basic() { // Arrange // Act this.order = new Klarna.Rest.OrderManagement.Order(this.connectorMock, string.Empty); // Assert Assert.AreEqual(this.path, this.order.Path); }
public void SetUp() { this.connectorMock = MockRepository.GenerateStub <IConnector>(); this.order = new Klarna.Rest.OrderManagement.Order(this.connectorMock, this.orderUrl); }