public InvalidPostAgifyBadRequestTests() : base(serviceConfiguration: services => { services.ReplaceWithFake <INicknameService>(new FakeNicknameServiceWithBadRequest()); }) { _context = GetDbContext <NicknamesContext>(); _context.AddDefaultUser(); }
public ValidPostTests() : base(services => { services.ReplaceWithFake <INicknameService>(new FakeNicknameServiceWithValidRequest()); }) { _context = GetDbContext <NicknamesContext>(); _context.AddDefaultUser(); }
public UserExists(NicknamesContext context) { _context = context; }
public static void AddNickname(this NicknamesContext context, Nickname nickname) { context.Nicknames.Add(nickname); context.SaveChanges(); }
public static void AddDefaultUser(this NicknamesContext context) { context.Users.Add(DataAccessTestData.DefaultUser); context.SaveChanges(); }
public static void AddNicknames(this NicknamesContext context, IEnumerable <Nickname> nicknames) { context.Nicknames.AddRange(nicknames); context.SaveChanges(); }
public ValidGetTests() { _context = GetDbContext <NicknamesContext>(); _context.AddDefaultUser(); }
public AddNicknames(NicknamesContext context) { _context = context; }
public InvalidGetTests() { _context = GetDbContext <NicknamesContext>(); }
public GetTheYoungestNickname(NicknamesContext context) { _context = context; }