Ejemplo n.º 1
0
 public async Task CompeleteIdentifierEmpty()
 {
     var table = Substitute.For<ITableStorage>();
     var core = new Coordinator(table, new TimeSpan(9000));
     await core.Complete(this.GetType(), Guid.Empty, DateTime.UtcNow, DateTime.UtcNow, true);
 }
Ejemplo n.º 2
0
        public async Task Compelete()
        {
            var table = Substitute.For<ITableStorage>();
            table.InsertOrReplace(Arg.Any<ScheduledTaskEntry>());

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

            table.Received().InsertOrReplace(Arg.Any<ScheduledTaskEntry>());
        }
Ejemplo n.º 3
0
 public async Task CompeleteTypeNull()
 {
     var table = Substitute.For<ITableStorage>();
     var core = new Coordinator(table, new TimeSpan(9000));
     await core.Complete(null, Guid.NewGuid(), DateTime.UtcNow, DateTime.UtcNow, true);
 }