VOL-3501 Refeactoring of code for event handling

Change-Id: I7d225a7b3b664efdaef5a6c9c84a118bac594be7
diff --git a/pkg/mocks/mockEventproxy.go b/pkg/mocks/mockEventproxy.go
index 816b0e3..71c7fec 100644
--- a/pkg/mocks/mockEventproxy.go
+++ b/pkg/mocks/mockEventproxy.go
@@ -44,3 +44,12 @@
 	}
 	return nil
 }
+
+// SendRPCEvent mocks the SendRPCEvent function
+func (me *MockEventProxy) SendRPCEvent(ctx context.Context, id string, deviceEvent *voltha.RPCEvent, category voltha.EventCategory_Types,
+	subCategory *voltha.EventSubCategory_Types, raisedTs int64) error {
+	if raisedTs == 0 {
+		return errors.New("raisedTS cannot be zero")
+	}
+	return nil
+}