/// <summary> /// Update the status of invoice /// </summary> /// <param name="invoiceNo"></param> /// <param name="status"></param> public void UpdateInvoiceStatus(IEnumerable <string> invoiceNums, Status status) { foreach (var invoice in invoiceNums) { InvoiceDataStore.UpdateStatus(invoice, status); } }
public void Test5() { var mockData = MockDataHelper.GetInvoiceData(); InvoiceDataStore.Update(mockData.InvoiceNo, mockData); Assert.That(_invoiceStore.ContainsKey(mockData.InvoiceNo)); Assert.That(_invoiceStore[mockData.InvoiceNo].Status == Status.NotProcessed); InvoiceDataStore.UpdateStatus(mockData.InvoiceNo, Status.Digitized); Assert.That(_invoiceStore.ContainsKey(mockData.InvoiceNo)); Assert.That(_invoiceStore[mockData.InvoiceNo].Status == Status.Digitized); }