public void Should_return_theme_by_name() { using (var context = new WeapsyDbContext(_contextOptions)) { var repository = new ThemeRepository(Shared.CreateNewContextFactory(context), Shared.CreateNewMapper()); var theme = repository.GetByName("Name 1"); Assert.NotNull(theme); } }