public PostService(RoomMateExpressDbContext context) { _context = context; var config = new MapperConfiguration(cfg => { cfg.CreateMissingTypeMaps = true; cfg.CreateMap <Post, Post>(); cfg.CreateMap <Post, PostViewModel>(); }); _mapper = config.CreateMapper(); }
public void PostCommentTestInitialize() { DbContext = new RoomMateExpressDbContext(ConnectionString); PostCommentService = new PostCommentService(DbContext); }
public void CityTestInitialize() { DbContext = new RoomMateExpressDbContext(ConnectionString); CityService = new CityService(DbContext); }
public CityService(RoomMateExpressDbContext context) { _context = context; }
public NeighborhoodService(RoomMateExpressDbContext context) { _context = context; }
public UserService(RoomMateExpressDbContext context) { _context = context; }
public PostPictureService(RoomMateExpressDbContext context) { _context = context; }
public MessageService(RoomMateExpressDbContext context) { _context = context; }
public void MessageTestInitialize() { DbContext = new RoomMateExpressDbContext(ConnectionString); MessageService = new MessageService(DbContext); }
public void AdminTestInitialize() { DbContext = new RoomMateExpressDbContext(ConnectionString); AdminService = new AdminService(DbContext); }
public PostCommentService(RoomMateExpressDbContext context) { _context = context; }
public AdminService(RoomMateExpressDbContext context) { _context = context; }