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)); }
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)); }