private void Verify(IWorkItemEvent @event, WorkItemViewModel workItem, TeamMemberViewModel teamMember, DateTime expecetdDate) { @event.Should().BeOfType <WorkItemReOpenedEvent>(); @event.Date.Should().BeCloseTo(expecetdDate, TimeSpan.FromSeconds(1)); @event.WorkItem.Id.Should().Be(workItem.WorkItemId); @event.AssociatedUser.Should().NotBeNull(); @event.AssociatedUser.Email.Should().Be(teamMember.Email); @event.AssociatedUser.Title.Should().Be(teamMember.DisplayName); }
private bool IsInRange(IWorkItemEvent r, ClassificationScope scope) { return((r.Date >= scope.StartDate && r.Date <= scope.EndDate) || r.Date == MaxDate); }
private bool IsError(IWorkItemEvent @event) { return(@event is ErrorClassifyingWorkItemEvent); }