public void GetByIdTest() { var modelContainer = new TimeTrackerContext(); var service = new UserService(modelContainer); var user = service.GetById(2); Assert.IsNotNull(user); }
public void GetByIdTest() { var modelContainer = new TimeTrackerContext(); var service = new BookingService(modelContainer); var booking = service.GetById(1); Assert.IsNotNull(booking); }
public void GetByIdTest() { var modelContainer = new TimeTrackerContext(); var service = new ProjectService(modelContainer); var project = service.GetById(2); Assert.IsNotNull(project); }
public UnitOfWork(TimeTrackerContext context, IProjectRepository projectRepository, IBranchRepository branchRepository, ITeamRepository teamRepository, IHolidayRepository holidayRepository, ITicketTypeRepository ticketTypeRepository) { _ctx = context; Projects = projectRepository; Branches = branchRepository; Teams = teamRepository; Holidays = holidayRepository; TicketTypes = ticketTypeRepository; _repositories = new Dictionary <Type, object>(); _disposed = false; }