Esempio n. 1
0
        public void CreateBusiness()
        {
            IService service = new Service();
            Business b = new Business();
            b.Id = 1;
            b.Name = "SKY";
            b.Employees = new List<Person>();
            Person p = new Person();
            p.Id = 1;
            p.Name = "Sepehr";
            b.Employees.Add(p);
            service.Add(b);

            Business sky = service.GetById(1);
            Assert.IsNotNull(sky);
        }
Esempio n. 2
0
 public void GetBusiness()
 {
     IService service = new Service();
     Business sky = service.GetById(1);
     Assert.IsNotNull(sky);
 }