public void Initialize() { this.data = new UnitOfWorkData(); this.news = new List<NewsItem> { new NewsItem { Title = "News One", Content = "News One Content", PublishDate = new DateTime(2013, 01, 01) }, new NewsItem { Title = "News Two", Content = "News Two Content", PublishDate = new DateTime(2014, 01, 01) }, new NewsItem { Title = "News Three", Content = "News Three Content", PublishDate = new DateTime(2015, 01, 01) } }; foreach (var newsItem in this.news) { this.data.News.Add(newsItem); } this.data.SaveChanges(); }
public TweetsController(IUnitOfWorkData database) { this.database = database; }
public AdminUsersService(IUnitOfWorkData data, ISanitizer sanitizer) : base(data, sanitizer) { }
public MessagesController(IUnitOfWorkData db) : base(db) { }
public WriterPostsService(IUnitOfWorkData data, ISanitizer sanitizer) : base(data) { this.sanitizer = sanitizer; }
public BaseUsersService(IUnitOfWorkData data, ISanitizer sanitizer) : base(data) { this.sanitizer = sanitizer; }
public ImagesService(IUnitOfWorkData data) : base(data) { }
public BaseAutorizePostsService(IUnitOfWorkData data) : base(data) { }
public DeliveryController(IUnitOfWorkData db) { this.db = db; }
public NewsController(IUnitOfWorkData data) : base(data) { }
public ShoppingCartController() { this.db = new UnitOfWorkData(); }
public ShoppingCartController(IUnitOfWorkData db) { this.db = db; }
public FundsController() { this.db = new UnitOfWorkData(); }
public FundsController(IUnitOfWorkData db) { this.db = db; }
public AuctionsController() { this.db = new UnitOfWorkData(); }
public UserController(IUnitOfWorkData db) { this.db = db; }
public ProductsController() { this.db = new UnitOfWorkData(); }
public DeliveryController() { this.db = new UnitOfWorkData(); }
public AdminSiteConstantsService(IUnitOfWorkData data) : base(data) { }
public AdminCategoriesController() { this.db = new UnitOfWorkData(); }
public CategoriesService(IUnitOfWorkData data) : base(data) { }
public UserController() { this.db = new UnitOfWorkData(); }
public AdminProductsController(IUnitOfWorkData unitOfWor) { this.db = unitOfWor; }
public UserController(IUnitOfWorkData db) { this.db = db; }
public AuctionsController(IUnitOfWorkData db) { this.db = db; }
public MealsController(IUnitOfWorkData data) : base(data) { }
public HomeController() { this.db = new UnitOfWorkData(); }
public ProjectsController(IUnitOfWorkData db) : base(db) { }
public TweetsController() { this.database = new UnitOfWorkData(); }
public AdminProductsController(IUnitOfWorkData unitOfWor) { this.db = unitOfWor; }
public UserController() { this.db = new UnitOfWorkData(); }
public HomeController(IUnitOfWorkData database) { this.database = database; }
public ProductsController(IUnitOfWorkData db) { this.db = db; }
public DeliveryController(IUnitOfWorkData db) { this.db = db; }
public DeliveryController() { this.db = new UnitOfWorkData(); }
public AuctionsController(IUnitOfWorkData db) { this.db = db; }
public ConnectionRequestsController(IUnitOfWorkData db) : base(db) { }
public AuctionsController() { this.db = new UnitOfWorkData(); }
public BaseAdministrationPostsService(IUnitOfWorkData data) : base(data) { }
public HomeController(IUnitOfWorkData db) { this.db = db; }
public CertificatesController(IUnitOfWorkData db) : base(db) { }
public BaseController() { this.data = new UnitOfWorkData(); }
public BaseController(IUnitOfWorkData data) { this.Data = data; }
public BooksController() { this.db = new UnitOfWorkData(); }
public CategoriesController() { this.db = new UnitOfWorkData(); }
public UserPostsController(IUnitOfWorkData db) : base(db) { }
public AdminProductsController() { this.db = new UnitOfWorkData(); }
public CommentsService(IUnitOfWorkData data, ISanitizer sanitizer) : base(data) { this.sanitizer = sanitizer; }
public RestaurantsController(IUnitOfWorkData data) : base(data) { }
public OrdersController(IUnitOfWorkData data) : base(data) { }