예제 #1
0
        public void Should_return_site_by_url()
        {
            using (var context = new MSSQLDbContext(_contextOptions))
            {
                var repository = new SiteRepository(DbContextShared.CreateNewContextFactory(context), Shared.CreateNewMapper());
                var site       = repository.GetByUrl("Url 1");

                Assert.NotNull(site);
            }
        }