public IAllReadyDataAccess CreateSutAndPopulateTestData()
 {
     var allReadyContext = _serviceProvider.GetService<AllReadyContext>();
     var allReadyDataAccess = new AllReadyDataAccessEF7(allReadyContext);
     PopulateData(allReadyContext);
     return allReadyDataAccess;
 }
Ejemplo n.º 2
0
        private ActivityApiController GetActivityController()
        {
            var allReadyContext = _serviceProvider.GetService<AllReadyContext>();
            var allReadyDataAccess = new AllReadyDataAccessEF7(allReadyContext);

            _bus = new Mock<IMediator>();
            var controller = new ActivityApiController(allReadyDataAccess, _bus.Object);

            PopulateData(allReadyContext);
            return controller;
        }
 private ActivityApiController GetActivityController()
 {
     var allReadyContext = _serviceProvider.GetService<AllReadyContext>();
     var allReadyDataAccess = new AllReadyDataAccessEF7(allReadyContext);
     var controller = new ActivityApiController(allReadyDataAccess, null);
     PopulateData(allReadyContext);
     return controller;
 }