private void Dependency_OnChange(object sender, SqlNotificationEventArgs e) { if (e.Type == SqlNotificationType.Change) { ReservationHub.GetReservation(); } }
public void Setup() { mockClients = new Mock <IHubCallerClients>(); mockClientProxy = new Mock <IClientProxy>(); mockClients.Setup(clients => clients.All).Returns(mockClientProxy.Object); reservationHub = new ReservationHub { Clients = mockClients.Object }; }