Пример #1
0
        public void Test_ServiceOperation_Search()
        {
            var entity = new ServiceOperationRepository();

            var data = entity.Search(new ServiceOperationSearchCriteria()
            {
                ServiceOperationType = Common.Models.ServiceOperationTypes.AcceptServiceApplication
            }).ToList();

            Assert.IsTrue(data != null);
        }
Пример #2
0
        public void Test_ServiceOperation_Create()
        {
            var entity = new ServiceOperationRepository();

            var operation = new Common.Models.ServiceOperation()
            {
                OperationID          = Guid.NewGuid().ToString(),
                ServiceOperationType = Common.Models.ServiceOperationTypes.AcceptServiceApplication
            };

            entity.Create(operation);

            Assert.IsTrue(operation.ServiceOperationID.HasValue);
        }