public void ChangeProcurementDataGood() { GetReady(); var actRes = controller.Put(1, new ProcurementModel() { Id = 1, Document = "272/01", Date = new DateTime(2016, 12, 22), ProductId = 2, SupplierId = 2, Quantity = 2, Price = 399 }); var response = actRes.ExecuteAsync(CancellationToken.None).Result; Assert.IsTrue(response.IsSuccessStatusCode); }
public void ChangeProcurementData() { GetReady(); var actRes = controller.Put(1, new ProcurementModel() { Id = 1, Quantity = 5, Price = 7, Date = DateTime.UtcNow, Document = "08000001", Supplier = new ProcurementModel.ProcurementSupplier() { Id = 1 }, Product = new ProcurementModel.ProcurementProduct() { Id = 1 } }); var response = actRes.ExecuteAsync(CancellationToken.None).Result; Assert.IsTrue(response.IsSuccessStatusCode); }