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); }
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>()); }
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); }