public ReportServicesTests() { this.db = DbGenerator.GetDbContext(); DbSeeder.SeedNormalUsers(this.db); DbSeeder.SeedGames(this.db); this.reportService = new ReportService(this.db, new GameService(this.db)); }
public DrawingServiceTests() { this.db = DbGenerator.GetDbContext(); DbSeeder.SeedNormalUsers(this.db); DbSeeder.SeedGames(this.db); var imageService = new Mock <IImageService>(); imageService .Setup(s => s.SaveGameDrawing(It.IsAny <string>(), It.IsAny <int>(), It.IsAny <string>())) .Returns(() => Task.FromResult(ImageUrl)); this.drawingService = new DrawingService(this.db, imageService.Object); }
public GameServiceTests() { this.db = DbGenerator.GetDbContext(); DbSeeder.SeedNormalUsers(this.db); this.gameService = new GameService(this.db); }