Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public void SubnetRepository_Contains_Subnets()
 {
     ISubnetRepository rep = new TestSubnetRepository();
     Assert.IsNotNull(rep.GetSubnets());
 }
Esempio n. 5
0
 public void Setup()
 {
     ISubnetRepository rep = new TestSubnetRepository();
     subnetService = new SubnetService(rep);
 }