public void GetVendors_ShouldReturnCorrespondingVendors()
        {
            var unitOfWork = GetUnitOfWork();
            var controller = new DistrictController(unitOfWork);

            var result = controller.GetVendors(3);

            Assert.IsNotNull(result);
            var resultList = result.ToList();

            Assert.AreEqual(2, resultList.Count);
            //Check that one of the vendors is marked as primary
            Assert.IsTrue(resultList[1].IsPrimary);
        }
        public void GetVendors_ShouldReturnUniquePrimaryVendor()
        {
            var unitOfWork = GetUnitOfWork();
            var controller = new DistrictController(unitOfWork);

            var result = controller.GetVendors(3);

            Assert.IsNotNull(result);
            int primaryVendors = 0;

            foreach (var vendor in result)
            {
                if (vendor.IsPrimary)
                {
                    primaryVendors++;
                }
            }

            Assert.AreEqual(1, primaryVendors);
        }