public void Setup() { var context = MoqDbContext.GetMockedContext(); var repo = new GenericRepository <ApplicationDbContext, FileBlob>(context.Object); var repoUrl = new GenericRepository <ApplicationDbContext, Url> (context.Object); var mapper = new Mapper(new MapperConfiguration(cfg => { cfg.AddProfile(new ServerMapperProfile()); })); this.dataSerivce = new BaseDataService <FileBlob, FileBlob, FileBlob, FileBlob, ApplicationDbContext>(repo, mapper, context.Object); this.dataSerivceUrl = new BaseDataService <Url, Url, Url, Url, ApplicationDbContext>(repoUrl, mapper, context.Object); }
public void Setup() { var context = MoqDbContext.GetMockedContext(); this.repo = new GenericRepository <ApplicationDbContext, FileBlob>(context.Object); }