private static string CreateStatusJson(TableDependencyStatuses tableDependencyStatuses, DateTimeOffset when)
        {
            var status = new VersionedTableDependencyStatus(tableDependencyStatuses, when);

            var message = JsonConvert.SerializeObject(status);

            return(message);
        }
        private string CreateStatusJson(TableDependencyStatuses tableDependencyStatuses)
        {
            var status = new VersionedTableDependencyStatus(tableDependencyStatuses, DateTimeOffset.Now);

            var jsonStatus = JsonConvert.SerializeObject(status);

            return(jsonStatus);
        }
        public void PushStatusMessage(TableDependencyStatuses tableDependencyStatuses)
        {
            var message = CreateStatusJson(tableDependencyStatuses, DateTimeOffset.Now);

            OnStatusMessageReceived(message);
        }
 private void VerifyStatusPublish(TableDependencyStatuses tableDependencyStatuses)
 {
     MockingKernel.GetMock <IEntityChangePublisherWithStatus <TestModel> >()
     .Verify(c => c.Publish(It.Is <VersionedTableDependencyStatus>(ec => ec.TableDependencyStatus == tableDependencyStatuses)), Times.Once);
 }