Exemplo n.º 1
0
        public void GetPersonByPhone_ShouldReturnPerson(string phone)
        {
            BiddingBroker broker     = new BiddingBroker(InitMockedDb());
            Person        goodPerson = new Person()
            {
                Name = "gigica", Phone = phone
            };

            broker.RegisterPerson(goodPerson);

            Assert.NotNull(broker.GetPersonByPhone(phone));
        }
Exemplo n.º 2
0
        public void GetPersonByPhone_ShouldReturnNullDueNotFound(string phone)
        {
            BiddingBroker broker = new BiddingBroker(InitMockedDb());

            Assert.Null(broker.GetPersonByPhone(phone));
        }