private bool Get_People_Works() { using (var ioc = DependencyContainer.Resolve <IRecentInfoQueryService>()) { var filter = new RecentPersonFilter(); var svc = ioc.Instance; var data = svc.GetPeople(filter); return(data.Any()); } }
public void RecentInfoCommandService_GetPeopleAfterSpecifiedContributedDate() { // Create ContributePerson(); // Find RecentPersonFilter recentPersonFilter = new RecentPersonFilter(); recentPersonFilter.ContributedAfter = DateTime.Now.AddDays(1); var recentInfoQueryService = GetDependency <IRecentInfoQueryService>(); Assert.IsInstanceOfType(recentInfoQueryService, typeof(IRecentInfoQueryService)); List <RecentPerson> recentPersonList = recentInfoQueryService.GetPeople(recentPersonFilter); Assert.IsFalse(recentPersonList.Any()); }