public async Task StartIdentifierEmpty()
 {
     var table = Substitute.For<ITableStorage>();
     var core = new Coordinator(table, new TimeSpan(9000));
     await core.Start(this.GetType(), Guid.Empty, DateTime.UtcNow);
 }
        public async Task Start()
        {
            var table = Substitute.For<ITableStorage>();
            table.InsertOrReplace(Arg.Any<ScheduledTaskEntry>());

            var core = new Coordinator(table, new TimeSpan(9000));
            await core.Start(this.GetType(), Guid.NewGuid(), DateTime.UtcNow);

            table.Received().InsertOrReplace(Arg.Any<ScheduledTaskEntry>());
        }
 public async Task StartTypeNull()
 {
     var table = Substitute.For<ITableStorage>();
     var core = new Coordinator(table, new TimeSpan(9000));
     await core.Start(null, Guid.NewGuid(), DateTime.UtcNow);
 }