Пример #1
0
        public void VratiCustomer_IdNijeNula_VratiOk()
        {
            var controler = new CustomerControl();

            var result = controler.VratiCustomer(1);

            Assert.That(result, Is.TypeOf <Ok>());

            Assert.That(result, Is.InstanceOf <Ok>());
        }
Пример #2
0
        public void VratiCustomer_IdJeNula_VratiNotFound()
        {
            var controler = new CustomerControl();

            var result = controler.VratiCustomer(0);

            Assert.That(result, Is.TypeOf <NotFound>());

            Assert.That(result, Is.InstanceOf <NotFound>());
        }