public void Given_Valid_Arguments_When_I_Call_AddToDayBatch_Then_The_Correct_Service_Method_Is_Called() { //act _sut.AddToDayBatch(_instrumentName, _serverParkName, _primaryKeyValue); //assert _catiServiceMock.Verify(v => v.AddToDayBatch(_connectionModel, _instrumentName, _serverParkName, _primaryKeyValue), Times.Once); }
public void AddCasesToDayBatch(string instrumentName, string serverParkName, List <string> caseIds) { instrumentName.ThrowExceptionIfNullOrEmpty("instrumentName"); serverParkName.ThrowExceptionIfNullOrEmpty("serverParkName"); caseIds.ThrowExceptionIfNullOrEmpty("caseIds"); foreach (var caseId in caseIds) { _blaiseCatiApi.AddToDayBatch(instrumentName, serverParkName, caseId); } }