public void SetUp(IList <WorkPlan> workPlans) { var repositoryDescriptor = new RepositoryDescriptor() { WorkPlans = workPlans }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); _adminService = new AdminService.Services.AdminService(_mockResult.UnitOfWorkMock.Object); }
public void Setup(IList <BookingInfo> bookingInfos, IList <Room> rooms = null) { var repositoryDescriptor = new RepositoryDescriptor() { Rooms = rooms, BookingInfo = bookingInfos, }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); _adminService = new AdminService.Services.AdminService(_mockResult.UnitOfWorkMock.Object); }
public void Setup(IList <User> users = null, IList <WorkingDaysCalendar> workingDays = null, IList <Desk> desks = null) { var repositoryDescriptor = new RepositoryDescriptor() { Users = users, WorkingDaysCalendar = workingDays }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); _adminService = new AdminService.Services.AdminService(_mockResult.UnitOfWorkMock.Object); }
public void Setup(IList <Desk> desks, IList <DeskStatusLookup> deskStatusLookups = null, IList <User> users = null) { RepositoryDescriptor repositoryDescriptor = new RepositoryDescriptor() { Desks = desks, DeskStatusLookup = deskStatusLookups, Users = users, }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); _adminService = new AdminService.Services.AdminService(_mockResult.UnitOfWorkMock.Object); }
public void Setup(IList <User> users, IList <UserPosition> userPositions = null, IList <WorkPlan> workPlans = null, IList <Desk> desks = null, IList <Room> rooms = null) { RepositoryDescriptor repositoryDescriptor = new RepositoryDescriptor() { Users = users, UsersPosition = userPositions, WorkPlans = workPlans, Desks = desks, Rooms = rooms, }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); _adminService = new AdminService.Services.AdminService(_mockResult.UnitOfWorkMock.Object); }
public void Setup(IList <Order> orders = null, IList <User> users = null, IList <Desk> desks = null, IList <Room> rooms = null) { var repositoryDescriptor = new RepositoryDescriptor() { Users = users, Rooms = rooms, Desks = desks, Orders = orders }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); _myBookingsService = new MyBookingsService(_mockResult.UnitOfWorkMock.Object); }
public void Setup(IList <User> users = null, IList <Desk> desks = null, IList <Room> rooms = null, IList <Order> orders = null, IList <BookingInfo> bookingInfos = null) { var repositoryDescriptor = new RepositoryDescriptor() { Users = users, Rooms = rooms, Desks = desks, Orders = orders, BookingInfo = bookingInfos, }; _mockResult = ServiceTestHelper.MockRepository(repositoryDescriptor); var orderNotificationMock = new Mock <IOrderNotification>(); orderNotificationMock.Setup(o => o.BookingConfirmed(It.IsAny <Order>())); _bookingManagementService = new BookingManagementService(_mockResult.UnitOfWorkMock.Object, orderNotificationMock.Object); }