public void GetAllActiveProjects_Test() { // ARRANGE CreateProjects(); var projectWithArchivedStatus = this.uow.Projects.GetAll().First(); projectWithArchivedStatus.SetStatus(EnumDefinition.ProjectStatus.Archived); this.uow.Complete(); var projectLogic = new ProjectLogic(); // ACT var activeProjects = projectLogic.GetAllActiveProjects(); // ASSERT Assert.IsTrue(activeProjects.Count() == 2); Assert.IsTrue(activeProjects.All(p => p.ProjectStatus == EnumDefinition.ProjectStatus.Active)); }