private Operator CreateOperator(Operator wfOperator) { OperatorRepository operatorRepository = new OperatorRepository(this.UnitOfWork); operatorRepository.Insert(wfOperator); return(wfOperator); }
public void OperatorInsert() { using (IUnitOfWork uow = UnitOfWorkFactory.Create()) { OperatorRepository operatorRepository = new OperatorRepository(uow); Operator newoperator = new Operator() { EMail = "*****@*****.**", FirstName = "John", LastName = "Doe" }; operatorRepository.Insert(newoperator); } }