public async Task <string> AddOperation(OperationSetup op) { var ent = op.ToOperation(); await _operationRepository.AddOperation(ent.ToOperationEntity()); return(ent.OperationId); }
public async Task AddOperation_Test() { var testingObject = GetTestingObject(); var opMan = testingObject.GetResolvedTestingObject(); const string targetOperationName = "TestOperation"; var testSetup = new OperationSetup(targetOperationName, "Test", new Dictionary <string, string> { { "Test", "Test" } }, DateTime.Now); var test = await opMan.AddOperation(testSetup); Assert.NotNull(_createdOp); Assert.Equal(test, _createdOp.OperationId); Assert.Equal(targetOperationName, _createdOp.CurrentOperation); Assert.Equal("Test", _createdOp.Context.Single().Value); }
public void ProcessOperation(OperationSetup operation) { OperationSetupProcessor.ProcessSetup(operation); }
public void ProcessOperation(OperationSetup operation) { OperationSetupProcessor.ProcessSetup(operation); }