public void CreateTest()
        {
            var controller = new PersonController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();
            Person person = new Person()
            {
                Id           = 0,
                FullName     = "Person Name",
                Designation  = "",
                PhoneNumber  = "01245637895",
                EmailAddress = "*****@*****.**",
                //CreatedDate = DateTime.Now,
                //CreatedUserId = 1,
                //FacilityId = 2
            };
            var result = controller.CreateEdit(person);

            Assert.IsTrue(result.IsSuccessStatusCode);
        }
        public void EditTest()
        {
            var controller = new PersonController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();
            Person person = new Person()
            {
                Id           = 1,
                FullName     = "Mr L Naina22 3",
                Designation  = "Principal",
                PhoneNumber  = "01245637895",
                EmailAddress = "*****@*****.**",
                //CreatedDate = DateTime.Now,
                //CreatedUserId = 1,
                //ModifiedDate = DateTime.Now,
                //ModifiedUserId = 1,
                //FacilityId = 2
            };
            var result = controller.CreateEdit(person);

            Assert.IsTrue(result.IsSuccessStatusCode);
        }