示例#1
0
        public void SubnetRepository_Has_Site_Filter_for_Subnets()
        {
            ISubnetRepository rep = new TestSubnetRepository();

            IList<Subnet> subnets = rep.GetSubnets()
                .WithSite(1)
                .ToList();
            Assert.IsNotNull(subnets);
        }
示例#2
0
 public void SubnetRepository_Returns_Single_Subnet_When_Filtered_ByID_1()
 {
     ISubnetRepository rep = new TestSubnetRepository();
     IList<Subnet> subnets = rep.GetSubnets().WithID(1).ToList();
     Assert.AreEqual(1, subnets.Count);
 }
示例#3
0
 public void SubnetRepository_Returns_2_Subnets_With_SiteID_1()
 {
     ISubnetRepository rep = new TestSubnetRepository();
     IList<Subnet> subnets = rep.GetSubnets().WithSite(1).ToList();
     Assert.AreEqual(2,subnets.Count);
 }
示例#4
0
 public void SubnetRepository_Contains_Subnets()
 {
     ISubnetRepository rep = new TestSubnetRepository();
     Assert.IsNotNull(rep.GetSubnets());
 }
示例#5
0
 public void Setup()
 {
     ISubnetRepository rep = new TestSubnetRepository();
     subnetService = new SubnetService(rep);
 }