Example #1
0
        public void FindById_ShouldWork()
        {
            var context = _contextFake
                          .GetContext("FindById_ShouldWork")
                          .AddFakeLevels();

            var levelFind = context.Levels.Skip(1).First();

            var repo   = new LevelRepository(context);
            var result = repo.FindById(levelFind.Id);

            Assert.NotNull(result);
            Assert.Equal(levelFind, result, new LevelComparer());
        }