Пример #1
0
        public void TestToReturnProperMessageIfEmployeeIsNotPresentWhileAddingRemark()
        {
            int id = 78;
            var updateRemarkClient = new ServiceFixtures.cs.EmployeeService.AddandCreateClient("BasicHttpBinding_IAddandCreate");
            var result             = updateRemarkClient.AddRemarksToEmployee(id, "Good Employee");

            Debug.WriteLine(result + "\n\n");
        }
Пример #2
0
        public void TestToCheckWhetherEnteredValuesShouldNotBeNull()
        {
            string name   = string.Empty;
            string remark = string.Empty;
            var    client = new ServiceFixtures.cs.EmployeeService.AddandCreateClient("BasicHttpBinding_IAddandCreate");

            client.CreateEmployee(name, remark, DateTime.Now);
        }
Пример #3
0
        public void TestToCheckWhetherEmployeeIsAddedSuccessfully()
        {
            string name   = "john";
            string remark = "noble";
            var    createEmployeeClient = new ServiceFixtures.cs.EmployeeService.AddandCreateClient("BasicHttpBinding_IAddandCreate");
            var    result = createEmployeeClient.CreateEmployee(name, remark, DateTime.Now);

            Assert.AreEqual(result, "Record Added Successfully.");
            Debug.WriteLine(result + "\n\n");
        }