예제 #1
0
        public async Task TestDeleteOperativeSystem(DeleteOperativeSystemByIdRequest delcom, ObjectResult resultAction, bool elementCreated = false)
        {
            Guid createdtransactionId = OperativeSystemComponentsValues.GetOperativeSystemAviability();

            delcom.Id = elementCreated == true ? createdtransactionId : delcom.Id;

            HttpResponseMessage actionResult = await _operativeSystemAPI.DeleteOperativeSystem(delcom);

            base.CheckAssert(actionResult, resultAction);
        }
예제 #2
0
        public async Task TestUpdateOperativeSystem(UpdateOperativeSystemRequest obj, ObjectResult resultAction, bool elementCreated = false)
        {
            var createdcompanyId = OperativeSystemComponentsValues.GetOperativeSystemAviability();

            obj.Id = elementCreated == true ? createdcompanyId : obj.Id;

            HttpResponseMessage actionResult = await _operativeSystemAPI.UpdateOperativeSystem(obj);

            base.CheckAssert(actionResult, resultAction);
        }