public void SubnetRepository_Has_Site_Filter_for_Subnets() { ISubnetRepository rep = new TestSubnetRepository(); IList<Subnet> subnets = rep.GetSubnets() .WithSite(1) .ToList(); Assert.IsNotNull(subnets); }
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); }
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); }
public void SubnetRepository_Contains_Subnets() { ISubnetRepository rep = new TestSubnetRepository(); Assert.IsNotNull(rep.GetSubnets()); }