예제 #1
0
        public async Task GornikDeleteTest()
        {
            var kluczRepository  = new FakeEntityKluczRepository();
            var gornikRepository = new FakeEntityGornikRepository();
            var gornikController = new GornikController(gornikRepository, kluczRepository);

            var result = await gornikController.Delete("lel");

            Assert.IsInstanceOfType(result, typeof(NotFoundResult));
        }
예제 #2
0
        public async Task GornikCreateTest()
        {
            var kluczRepository  = new FakeEntityKluczRepository();
            var gornikRepository = new FakeEntityGornikRepository();
            var gornikController = new GornikController(gornikRepository, kluczRepository);

            var result = await gornikController.Create();

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }