Esempio n. 1
0
        public void Test_BrokerRepository_Get()
        {
            var all = _repository.GetAll();

            var broker = _repository.Get(TestConstants.TestBrokerId);

            var data = all.First(x => x.Id == TestConstants.TestBrokerId);

            data.ShouldBeEquivalentTo(broker);

            var byUserId = _repository.GetByUserId(broker.UserId);

            data.ShouldBeEquivalentTo(byUserId);
        }